ALLInterview.com :: 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                      
tip   SiteMap shows list of All Categories in this site.
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
main is a predefined or user define function
if user  defined why?
if predefined whay?
 Question Submitted By :: Pradeep.techbuzz
I also faced this Question!!     Rank Answer Posted By  
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 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 ?    44 Yes 9 No
Vignesh1988i
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 2
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 ?    14 Yes 17 No
S.s.venkatesh
 
 
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 3
main() is predefined function, coz we can't change it's
prototype....
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 ?    8 Yes 6 No
Vilas Soni++
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 4
main is Predefined.why because its is implemented by the
developer
 
Is This Answer Correct ?    2 Yes 7 No
Ankith.v
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 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 ?    4 Yes 3 No
B.laddu Lal
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 6
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
predefine...
this function is dependent on both user and compiler for
the execution of the program.so 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 ?    7 Yes 2 No
Sandeep Kumar Yadav
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 7
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
parameter
 
Is This Answer Correct ?    2 Yes 1 No
Chitaranjan Barik
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 8
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 0 No
Pramod Jirage
 
  Re: main is a predefined or user define function if user defined why? if predefined whay?
Answer
# 9
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 0 No
Shankar Dayal
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Write a program to interchange two variables without using the third variable? Accenture17
Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.  2
differnce between do and do while DOEACC3
Write a programm such that if user enter 11.25 it roundup to 11 but if user enter 11.51 upto 11.99 it will round up to 12 i.e.;convert the floting point value into integer format as explain above..  2
can you explain in brief what is "r+" mode in a file... i know that it si used to read and modify rhe existing content.... but explalanation about the file pointer in "r+" mode i wann to know??????????? Cognizent2
Given a number N, product(N) is the product of the digits of N. We can then form a sequence N, product(N), product(product(N))… For example, using 99, we get the sequence 99, 99 = 81, 81 = 8. Input Format: A single integer N Output Format: A single integer which is the number of steps after which a single digit number occurs in the sequence. Sample Test Cases: Input #00: 99 Output #00: 2 Explanation: Step - 1 : 9 * 9 = 81 Step - 2 : 8 * 1 = 8 There are 2 steps to get to this single digit number. Input #01: 1137638147  2
what is void pointer?  2
How to removing white spces in c programming only bu using loops  2
wat is the difference between a definition and declaration? float y;---it looks like a declaration..but it s a definition.how?someone explain TCS3
Write a program to accept a character & display its corrosponding ASCII value & vice versa?  6
main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time. Cisco1
difference between i++* and *++i IBM6
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com