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 is a stream water?
Explain bit masking in c?
In which layer of the network datastructure format change is done
What is a char in c?
what is reason of your company position's in india no. 1.
When can you use a pointer with a function?
What is the purpose of 'register' keyword in c language?
What language is windows 1.0 written?
What are valid signatures for the Main function?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
What is the use of structure padding in c?
Explain what does it mean when a pointer is used in an if statement?
How variables are declared in c?
Which is better pointer or array?