how to create c progarm without void main()?
Answer / surya bhagavan s
#include<stdio.h>
#include <unistd.h>
_start()
{
_exit(my_main());
}
int my_main(void)
{
printf("Hello\n");
return 42;
}
for compilation
gcc -o3 -nostartfiles example.c
| Is This Answer Correct ? | 2 Yes | 7 No |
how can we use static and extern?and where can we use this?
Convert the following expression to postfix and prefix (A+B) * (D-C)
how logic is used
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....
What are the advantages of the functions?
what is constant pointer?
What are the Advantages of using macro
Tell me the use of bit field in c language?
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
i got 75% in all semester am i eligible for your company
how can you print&scan anything using just one character? :) HINT: printf,scanf similer
How can I make sure that my program is the only one accessing a file?