Try the following program to Print India Map #include <stdio.h> #include<conio.h> main() { int a,b,c;
Author: Mohit Arora
Whenever we are asked to write a program to find length of string, we make use of inbuilt function- strlen (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strlen (). This program helps to find length of strings without using strlen ().
#include <stdio.h> #include<conio.h> void main() { FILE *fp1, *fp2; char ch;
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()