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
What are enumerated types?
What is static function in c?
Can we declare function inside main?
explain what are actual arguments?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Why is this loop always executing once?
What is printf () in c?
How can I find out if there are characters available for reading?
What is a structure in c language. how to initialise a structure in c?
What is assert and when would I use it?
What are header files? What are their uses?
Explain what is a pragma?
Do pointers store the address of value or the actual value of a variable?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What will be the outcome of the following conditional statement if the value of variable s is 10?