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

Is main() function predfined or userdefined?

Answer Posted / nara venkata satyanarayana

First we should know whether main() belongs to C/C++ or
java. If it is in C/C++ it is "user-defined" because not
available in any header file and body defined by user, but
compiler will starts body execution from main() function
only. But in java without main() also we can execute
programs and get output eg:-using static blocks.
Here also it is "user-defined" one.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is fortran still used today?

1093


What is adt in c programming?

1164


When is a null pointer used?

1115


What does %p mean?

1085


swap 2 numbers without using third variable?

1133


What is a ternary operator in c?

1123


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1245


What is calloc() function?

1093


What is the use of in c?

1027


Where are some collections of useful code fragments and examples?

1162


Why do we use pointer to pointer in c?

1084


What is the right way to use errno?

1056


Why header file is used in c?

1095


How do you determine whether to use a stream function or a low-level function?

1124


What is an operator?

1075