Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How many levels of pointers have?

1053


Why isn't it being handled properly?

1067


Why flag is used in c?

1133


Which is better malloc or calloc?

1103


Explain heap and queue.

1089


What is a pointer value and address in c?

1133


What is sizeof in c?

1012


How do we make a global variable accessible across files? Explain the extern keyword?

1884


What is the right type to use for boolean values in c?

1034


When should a far pointer be used?

1130


How do I determine whether a character is numeric, alphabetic, and so on?

1135


Can true be a variable name in c?

1041


Is it valid to address one element beyond the end of an array?

1175


What is unary operator?

1107


Explain two-dimensional array.

1074