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

Hi,
main()
{
}

Is a user defined function or Built in Functionn

Answer Posted / amit jha

1. main() itself is a predefined function.

where as main() is a userdefined function because there we
are writing the internal part.

2. it is an inbuilt function i.e, main() it indicates the
starting of the program and it is a user defined function
when the user defines it as void main() or int main(void).

3. A program usually stops executing at the end of main,
although it can terminate at other points in the program
At times, perhaps when a certain error is detected, you
may want to force the termination of a program. To do so,
use the exit function. so that main() is a user defined
function.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

1252


Where does the name "C" come from, anyway?

1164


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1969


How can a number be converted to a string?

1325


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2325


What are static variables in c?

1078


What is wild pointer in c with example?

1058


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1162


How many bytes are occupied by near, far and huge pointers (dos)?

1153


What is the use of sizeof () in c?

1047


Tell me what is null pointer in c?

1073


Can we change the value of static variable in c?

1027


Why does not c have an exponentiation operator?

1047


How many types of sorting are there in c?

1052


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

1198