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 could explain about job profile
inline function is there in c language?
What are the advantages of Macro over function?
Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?
Explain zero based addressing.
What does the c preprocessor do?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is difference between array and structure in c?
Explain what are header files and explain what are its uses in c programming?
How can a number be converted to a string?
code for reverse alternate words from astring
What Is The Difference Between Null And Void Pointer?