:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Programming Languages >> C


 C interview questions  C Interview Questions (2265)
 C++ interview questions  C++ Interview Questions (1119)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (648)
main is a predefined or user define function
if user  defined why?
if predefined whay?
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
# 1
actually main function is a user defined function for the C
compiler developer.... but it is a built in or predefined
function according to the users using that compiler.... why
it is called as a predefined function because , 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 , we can change the meaning
of main()......

for the main() , we don't know what is the prototype or
where the function has been called and wht excatly the
return value of it... it is built in and abstracted from the
user which is called abstraction in c++.........

thank u
Is This Answer Correct ?    53 Yes 11 No
# 2
the definition of main is given by the user so it is called
user define function..
the prototype is define by the compiler so it is called
this function is dependent on both user and compiler for
the execution of the it is not only user define
or predefine..
so we can say it is a special function called by operating
system to execute the program.
Is This Answer Correct ?    13 Yes 2 No
Sandeep Kumar Yadav
# 3
the main() is a predefined function because we can't change
the name of the function or characterstics of the function.

If the function is user defined means we can change the
name of the function as we wish.

So,the main() is a predefined function.
Is This Answer Correct ?    20 Yes 17 No
# 4
main() is predefined function, coz we can't change it's
We can only implement it.... And we have to use main() in
our program coz it's "Entry Point" to any C program....

(We can say userdefined, if we can also define it's
prototype and name, and in this case we can't!, we can use
only available types of main()....)
Is This Answer Correct ?    10 Yes 7 No
Vilas Soni++
# 5
Main() a userdefined function or a predefined function a multimillion question?

main() is neither predefined nor userdefined function its a special member function call by Operating System......
Is This Answer Correct ?    6 Yes 4 No
B.laddu Lal
# 6
Main() is a predefined
function,because it's
prototype,call function,
returning val -all these
parameters only kown
to compile,not to
user.but we can use it
as user defined by
specifying our own
Is This Answer Correct ?    3 Yes 2 No
Chitaranjan Barik
# 7
main() is to be predefined beoause the progarm contralm
flows from main and it is essiontal to opreat the program
Is This Answer Correct ?    0 Yes 2 No
Pramod Jirage
# 8
main() function is niether predefined nor user defined function. Because if it is predefined, when program is written in main() function then given their own logic then how it is predefined. Another one if it is user defined, then we can write the any function name on the place of main(). So main() is niether a predefined nor user defined function. 
Is This Answer Correct ?    0 Yes 2 No
Shankar Dayal
# 9
main is Predefined.why because its is implemented by the
Is This Answer Correct ?    3 Yes 10 No

Other C Interview Questions
  Question Asked @ Answers
WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?   4
What are the different types of pointers? TCS 4
how to find out the inorder successor of a node in a tree?? TCS 2
program to find the ASCII value of a number   7
What is the difference b/w Structure & Union?   3
write a program without using main function? tcs 2
what is the difference between <stdio.h> and "stdio.h" Kanbay 13
Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); } Subex 3
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[] Hughes 6
Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass. Microsoft 11
Write a program to find given number is even or odd without using any control statement.   2
Hai why 'c' is the middle language   4
For more C Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::