Is it possible to run a c program without using main?If yes
HOW??
Answer Posted / vrushali
Hi Valli,
I tried the solution provided by you. It doesnot work.
Please chk the compliation procedure.
gcc -g -nostartfiles main.c
I am getting the following:
/usr/bin/ld: warning: cannot find entry symbol _start;
defaulting to 080481a4
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What are structure types in C?
What is the use of sizeof () in c?
Why do we use & in c?
What is logical error?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is malloc() function?
What are the features of the c language?
What are qualifiers in c?
What are header files why are they important?
why programs in c are running with out #include
Explain what is the benefit of using #define to declare a constant?
Is null valid for pointers to functions?
What is the purpose of realloc()?