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                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2248)
 C++ interview questions  C++ Interview Questions (1106)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (644)
Question
Hi,
main()
{
}

Is a user defined function or Built in Functionn
 Question Submitted By :: Raghav_jk
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 1
it's a inbuilt function but it don't return any value
because void is used to return a charachter value.
 
Is This Answer Correct ?    20 Yes 67 No
Narender Vadhava
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 2
it's actually user defined built in function...... since we
the user gave the function name as main() when we write the
coding for the compailer........
 
Is This Answer Correct ?    28 Yes 40 No
Vignesh1988i
 
 
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 3
main () is user defined function built in function.....
bcoz we define what it will do... and it already has it's
name as main.
 
Is This Answer Correct ?    9 Yes 26 No
Abhishek Munde
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 4
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 ?    48 Yes 9 No
Manjunath
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 5
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 ?    22 Yes 8 No
Sree
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 6
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 ?    19 Yes 6 No
Vikas Kumar Shakya
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 7
main is a system declared user defined function 
Is This Answer Correct ?    26 Yes 7 No
Yogesh Bansal
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 8
it is an inbuilt function i.e, main() it indicates the
starting of the program and it is a user defined function
when the user defines it as void main() or int main(void).
 
Is This Answer Correct ?    5 Yes 13 No
Lakkup
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 9
it is built in function because (main )codings are written
by the software developer.so,we cant change anything in
this built in function.but user defined functions are
changed by us.
so it is built in function
 
Is This Answer Correct ?    5 Yes 12 No
Divya
 
  Re: Hi, main() { } Is a user defined function or Built in Functionn
Answer
# 10
=> 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 ?    9 Yes 5 No
Govind
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
wap in c to accept n number display the highest and lowest value   2
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986   2
what is the difference between malloc() and calloc() function?   1
How many ways are there to swap two numbers without using temporary variable? Give the each logic.   8
wite a programme in c to linear search a data using flag and without using flags? TCS 3
2. What does static variable mean?   2
what is diognisis?   1
write a c program to print "Welcome" without using semicolon in the whole program ?? TCS 15
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.   3
main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }   6
c program to add and delete an element from circular queue using array   3
main() { intx=2,y=6,z=6; x=y=z; printf(%d",x) } HCL 5
 
For more C Interview Questions Click Here 
 
 
 
 
 


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

ALLInterview.com   ::  KalAajKal.com