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 is the basic structure of c?

1086


What are the three constants used in c?

995


What is a method in c?

1152


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1558


Why c is called top down?

1165


Which is better between malloc and calloc?

1204


What is the difference between memcpy and memmove?

1030


Can you please explain the scope of static variables?

1063


Explain why C language is procedural?

1226


How can I recover the file name given an open stream or file descriptor?

1082


Give differences between - new and malloc() , delete and free() ?

1100


what is recursion in C

1069


What is wrong with this initialization?

1007


Why c is a procedural language?

1059


What type of function is main ()?

1046