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


Please Help Members By Posting Answers For Below Questions

Explain what is the most efficient way to store flag values?

702


What are directives in c?

550


What is the process of writing the null pointer?

611


How can you read a directory in a C program?

657


What the different types of arrays in c?

618






a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

618


What is double pointer?

563


What is sizeof array?

618


What is the translation phases used in c language?

640


Why is not a pointer null after calling free?

600


What is the newline escape sequence?

591


Mention four important string handling functions in c languages .

634


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

677


What is meant by preprocessor in c?

540


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

671