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 keywords (reserve words) are in c?

1098


Is void a keyword in c?

936


Explain what are the __date__ and __time__ preprocessor commands?

1081


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

1953


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

2053


How is actual parameter different from the formal parameter?

982


What are called c variables?

1021


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1683


Are local variables initialized to zero by default in c?

993


What is the explanation for modular programming?

1155


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3647


What does static variable mean in c?

1068


Are comments included during the compilation stage and placed in the EXE file as well?

1037


What are the characteristics of arrays in c?

996


Why flag is used in c?

1078