
- Forum
- Programming Talk
- C and C++
- is it possible C program without main() fn
is it possible C program without main() fn
This is a discussion on is it possible C program without main() fn within the C and C++ forums, part of the Programming Talk category; actually tre is no way u can erite a c prog without main .. now its jus abt bluffing .. ...
-
05-30-2009, 06:47 AM #1
- Join Date
- May 2009
- Answers
- 1
is it possible C program without main() fn
actually tre is no way u can erite a c prog without main ..
now its jus abt bluffing ..
#include<stdio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)
int begin()
{
printf(" hello ");
}
this prog is encoding main into some other name (here it is "begin ")
## is a merging operator..
Is it correct.....
-
i think is not possible
-
antil now i didnt see a program without main()
have u tried 2 write a program without main ()????
-
It is possible
you have to set the entry point as a function name(in this case "Begin") in the linker.
-
08-24-2009, 02:47 AM #5
- Join Date
- Aug 2009
- Answers
- 2
No its not possible to to write a prgm without main()
hi....... main() indicates the starting of a prgm..... it intimates the control statement to start execution from 'main()' statement......
-
08-25-2009, 05:17 AM #6
- Join Date
- Aug 2009
- Answers
- 2
'c' prg without main()
hi harsha.can u elobaorate ur explanation
-
09-10-2009, 10:09 AM #7
It is not possible, since only from the main() function we are calling other functions.
-
Sponsored Ads

Reply With Quote





