Yes, you read it right. Seems impossible ? Nothing is impossible. Though it seems meaningless to write C Program without main Function . Every Program Must have Main Function as it is Entry Point of Every C Program. All Predefined and User-defined Functions are called directly or indirectly through the main.
Category: C programs
Before moving forward to write program to check whether two strings are anagram or not. We will discuss what actually anagrams are. Anagram is a form of word play in which letters of a word or phrase are rearranged in such a way that a new word or phrase is formed. Anagram is formed by using […]
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 string without using strlen ().
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> Void main() {
Try the following program to Print India Map #include <stdio.h> #include<conio.h> main() { int a,b,c;
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 ().