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 you return null in c?

0 Answers  


What is the concatenation operator?

0 Answers  


what is the function of void main()?

8 Answers  


1 1 12 21 123 321 12344231 how i creat it with for loop??

1 Answers  


Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a

7 Answers  






can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


using for loop sum 2 number of any 4 digit number in c language

0 Answers  


What are enumerated types?

0 Answers  


Why shouldn’t I start variable names with underscores?

0 Answers  


What are the rules for the identifier?

0 Answers  


How would you rename a function in C?

0 Answers   Tech Mahindra,


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

0 Answers   Google,


Categories