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

Why n++ execute faster than n+1 ?

2295


Describe dynamic data structure in c programming language?

809


What does malloc () calloc () realloc () free () do?

773


What is c token?

824


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

809


can any one provide me the notes of data structure for ignou cs-62 paper

1897


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1379


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2408


Does c have circular shift operators?

947


What is file in c preprocessor?

875


How important is structure in life?

782


Explain the term printf() and scanf() used in c language?

808


How do I read the arrow keys? What about function keys?

833


Explain what happens if you free a pointer twice?

798


Is c# a good language?

783