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

Answers were Sorted based on User's Feedback



Hi, main() { } Is a user defined function or Built in Functionn..

Answer / manjunath

Its a user defined function. How can it be inbuilt
function? We are the one who writes the main function.
Program execution starts with main function. We can also
compile a code without main, but we cant create exe, since
it requires a main function to execute.

Is This Answer Correct ?    55 Yes 9 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / yogesh bansal

main is a system declared user defined function

Is This Answer Correct ?    31 Yes 8 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / sree

main() itself is a predefined function.

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

Is This Answer Correct ?    27 Yes 8 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / vikas kumar shakya

main() is a user defined function. it is the entry point of
any program.
At run time the main() function is searched as the entry to
start the program.

Is This Answer Correct ?    23 Yes 6 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / govind

=> The main function serves as the starting point for
program execution.

=> It usually controls program execution by directing the
calls to other functions in the program.

=> A program usually stops executing at the end of main,
although it can terminate at other points in the program
for a variety of reasons.
=> 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. See the Run-Time Library Reference
for information on and an example using the exit function.

so that
main() is a user defined function. it is the entry point of
any program.

Is This Answer Correct ?    10 Yes 5 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / eklavya sharma

main is a kind of function which is a user defined function for the C compiler developer and it is built in or predifined function to the users using that compiler. The prototype has already been defined in the compiler itself we the users can't change the meaning of that unless or until we write our own compiler.

Is This Answer Correct ?    5 Yes 0 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / suyash kumar singh

main() is user Defined funtion

Is This Answer Correct ?    3 Yes 0 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / suresh kumar

main() is a system declared bt user defined function
coz main is declared as built in functions but we give the
definition of main according to us. means it is defined by
the user.

Is This Answer Correct ?    6 Yes 4 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / rajen kumar

if main() is user define...then why not...we can't change
it's name ??

Is This Answer Correct ?    3 Yes 1 No

Hi, main() { } Is a user defined function or Built in Functionn..

Answer / ekta

1: Main is not a user defined function because user defined
functions can be given be given their own names .We can not
give a new name to main.

2:Main is not an inbuilt function because every inbuilt
function is defined in a specific library .But main has not
been defined in any library.it even works without libraries.

So finally main is just a convention to start a program.
Every language like java,c++,c all start their execution
from main.All programs need a starting point.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More C Interview Questions

How can I dynamically allocate arrays?

0 Answers  


how to find out the union of two character arrays?

2 Answers  


biggest of two no's with out using if condition statement

5 Answers  


What is a void * in c?

0 Answers  


actually i have 2 years teaching experience as computer faculty but now i am a DBA but when i go for interview many peoples asked me why i left my teaching profession and why i want to come in this field kindly give me the proper answer of this queston

3 Answers   Ramco,


how to swap 4 number without using temporary number?

2 Answers  


If null and 0 are equivalent as null pointer constants, which should I use?

0 Answers  


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

0 Answers  


Example of friendly function in c++

2 Answers  


Explain what is a program flowchart and explain how does it help in writing a program?

0 Answers  


Explain what are compound statements?

0 Answers  


How is a null pointer different from a dangling pointer?

0 Answers  


Categories