#include <stdio.h> #include<conio.h> void main() { FILE *fp1, *fp2; char ch;
Category: C programs
This program asks the user to enter the times in term of seconds. Then it convert time in seconds to hours, Minutes and seconds. #include<stdio.h> #include<conio.h>
Whenever we are asked to write a program to compare two strings, we make use of inbuilt function- strcmp (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strcmp (). This program helps to compare two strings without using strcmp ()
Whenever we are asked to write a program to concatenate two strings, we make use of inbuilt function- strcat (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strcat (). This program helps to concatenate two strings without using strcat()
Whenever we are asked to reverse a string, we make use of inbuilt function- strrev (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strrev (). This program helps to reverse a String without using strrev().
Whenever we are asked to write a program to copy one string to another string, we make use of inbuilt function- strcpy (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strcpy (). This program helps to copy one String to Another string […]