ALLInterview.com :: Home Page KalAajKal.com
 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
what is the function of void main()?
 Question Submitted By :: Joydeep Roy
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the function of void main()?
Answer
# 1
void main() function,it will flow of the program 
execution,what are the next step of line to execute.
for example,
void main()
{
int b=0
cout<<b;
int c=0;
cout<<c;
}
/*it will indicate first create object of int type,after it 
will genereate next statement.*/
 
Is This Answer Correct ?    5 Yes 1 No
Chirag Sathvara
 
  Re: what is the function of void main()?
Answer
# 2
void main()
//this function indicate the starting of the program furthur
tells that it has non return value.
 
Is This Answer Correct ?    6 Yes 0 No
Khemnath Chauhan
 
 
 
  Re: what is the function of void main()?
Answer
# 3
main is the special function,,,,,,,, wch contain the 
defination of u r program or we can say it contain the main 
body of u r program.It is called as special funtion becoz 
it is invoked by the compiler itself,no any other function 
call the main().
the void is a return type which is use when no meaning ful 
value is to be return
 
Is This Answer Correct ?    4 Yes 2 No
Amit Shrivastava
 
  Re: what is the function of void main()?
Answer
# 4
it has no meaning it does not return any value to the 
operating system
 
Is This Answer Correct ?    5 Yes 3 No
Revathi
 
  Re: what is the function of void main()?
Answer
# 5
It marks the beginning of the main body of the program and
also ensures that it is properly executed. Basically, void
main() creates the base for the program.
 
Is This Answer Correct ?    1 Yes 1 No
Bunny
 
  Re: what is the function of void main()?
Answer
# 6
it shows the beginning of the program n this function is
called by the complier.here void means main()wont return any
value.
 
Is This Answer Correct ?    1 Yes 1 No
Sonia
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
What is a symbolic constant?  1
How to receive strings with spaces in scanf()  4
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?  4
write a “Hello World” program in “c” without using a semicolon?  3
what does " calloc" do? Cadence6
what is array? HCL22
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?  1
what is the definition of storage classes? Wipro2
wats SIZE_T meant for?  1
Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms Convex-Digital4
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y TCS3
class foo { public: static int func(const char*& p) const; }; This is illegal, why? Google6
what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above Accenture2
what are two categories of clint-server application development ?  1
convert 12345 to 54321 withoutusing strig  3
HOW DO YOU HANDLE EXCEPTIONS IN C? AppLabs2
void main() { int i=5; printf("%d",i+++++i); } ME12
write a program to sort the elements in a given array in c language  2
how many header file is in C language ?  14
What are the commands should be given before weiting C Program i.e, Cd.. like Infonet3
 
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 © 2007  ALLInterview.com.  All Rights Reserved.

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