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...

what is the need for main function in c?

Answer Posted / kartik

The main() function represenrs starting of the program.When
ever we write main in program the system analyse starts from
tthere

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we write conio h in c?

966


What is the difference between text and binary modes?

1128


When we use void main and int main?

1019


How do you declare a variable that will hold string values?

1107


Explain is it better to bitshift a value than to multiply by 2?

1142


What is the use of #include in c?

1036


What is the difference between struct and typedef struct in c?

1087


Explain how do you list a file’s date and time?

990


Explain heap and queue.

1014


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1230


Why is c platform dependent?

1027


Why is %d used in c?

965


What is the function of volatile in c language?

1072


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1055


Can we declare function inside main?

948