C PROGRAM WITHOUT MAIN FUNCTION
Hello friends...
we always create a program in C and C++ programming language and the most important thing is that we create a main function in every program.We are also taught by the teachers that we can not create a C program without main function .As we know main is a user defined function so can we make a C program without main function?
Yes we can....
here is the code...
#include<stdio.h>
#include<conio.h>
#define begin main
int begin()
{
clrscr();
printf("This program is without main function");
getch();
return 0;
}
This program will compile and run successfully .
So this was all for this post we will come with new and interesting typical programmming in C that make a lot of fun.
No comments:
Post a Comment