how to execute with out main in cprogram
Answer Posted / sushil kumar
Well Done !!!!!!!
I can give an explanation
When a c program is compiled the preprocessor process the code and replace the macros in the code
IN void rawat()
#define rawat ravinder(m,b,a,j,n,i) replaces rawat so code becomes
void ravinder(m,b,a,j,n,i)()
which calls the first macro to replace ravinder(m,b,a,j,n,i) by m##a##i##n i.e main
so now we have
void main()
that's why this code executes correctly
C always requires a main program to execute
| Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
How many levels of pointers have?
Why isn't it being handled properly?
Why flag is used in c?
Which is better malloc or calloc?
Explain heap and queue.
What is a pointer value and address in c?
What is sizeof in c?
How do we make a global variable accessible across files? Explain the extern keyword?
What is the right type to use for boolean values in c?
When should a far pointer be used?
How do I determine whether a character is numeric, alphabetic, and so on?
Can true be a variable name in c?
Is it valid to address one element beyond the end of an array?
What is unary operator?
Explain two-dimensional array.