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
Explain what is the most efficient way to store flag values?
What are directives in c?
What is the process of writing the null pointer?
How can you read a directory in a C program?
What the different types of arrays in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is double pointer?
What is sizeof array?
What is the translation phases used in c language?
Why is not a pointer null after calling free?
What is the newline escape sequence?
Mention four important string handling functions in c languages .
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What is meant by preprocessor in c?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant