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?

Answers were Sorted based on User's Feedback



Is main() function predfined or userdefined?..

Answer / ravi

userdefined

Is This Answer Correct ?    33 Yes 7 No

Is main() function predfined or userdefined?..

Answer / 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

Is main() function predfined or userdefined?..

Answer / sreehari

main() function is user-defined function. Before knowing the
reason, we should know one thing is we can use predefined
function and get the result but we never write code for
predefined functions explicitly na....and we use to write
the code of main function for our desires.

Is This Answer Correct ?    7 Yes 1 No

Is main() function predfined or userdefined?..

Answer / gunda rajkumar

"userdefined" because we are writing the code for main()
or we are defining the boby for main()

Is This Answer Correct ?    8 Yes 3 No

Is main() function predfined or userdefined?..

Answer / khaja

ya user define only

Is This Answer Correct ?    6 Yes 2 No

Is main() function predfined or userdefined?..

Answer / subodh sharma

The main function is predefine and have three arguments
which return the value to the operating system and main is
also called by operating system .

Is This Answer Correct ?    11 Yes 9 No

Is main() function predfined or userdefined?..

Answer / mohit jain

main() function is user defined function becoz we defined it.
it is not predfined in header files.

Is This Answer Correct ?    4 Yes 2 No

Is main() function predfined or userdefined?..

Answer / aditya reja

main() is a user define function because its definition
is always define by user and its definition is not present in
any header file.

Is This Answer Correct ?    0 Yes 0 No

Is main() function predfined or userdefined?..

Answer / guest

predfined

Is This Answer Correct ?    5 Yes 10 No

Is main() function predfined or userdefined?..

Answer / vignesh1988i

it is a predefined function..............

Is This Answer Correct ?    8 Yes 15 No

Post New Answer

More C Interview Questions

Can we declare function inside main?

0 Answers  


What does stand for?

0 Answers  


How can you avoid including a header more than once?

0 Answers  


When is a void pointer used?

0 Answers  


15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

2 Answers   CTS,


What are the disadvantages of external storage class?

0 Answers  


char *p="name"; printf(p);

1 Answers  


Why do we use header files in c?

0 Answers  


What does the error 'Null Pointer Assignment' mean and what causes this error?

0 Answers   TISL,


What is the difference between abs() and fabs() functions?

0 Answers  


What are c preprocessors?

0 Answers  


the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0

1 Answers  


Categories