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 keywords (reserve words) are in c?
Is void a keyword in c?
Explain what are the __date__ and __time__ preprocessor commands?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
How is actual parameter different from the formal parameter?
What are called c variables?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Are local variables initialized to zero by default in c?
What is the explanation for modular programming?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What does static variable mean in c?
Are comments included during the compilation stage and placed in the EXE file as well?
What are the characteristics of arrays in c?
Why flag is used in c?