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   To Refer this Site to Your Friends   Click Here
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 ?    1 Yes 0 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 ?    1 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 ?    0 Yes 0 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 ?    0 Yes 0 No
Revathi
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
How do I initialize a pointer to a function?  2
Explain in detail how strset (string handling function works )pls explain it with an example.  1
How the processor registers can be used in C ? HP4
AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST? HCL9
palindrome for strings and numbers----Can anybody do the prog? TCS5
WRITE A PROGRAM TO FIND A REVERSE OF TWO NO  5
Which of the following about automatic variables within a function is correct ? a.its type must be declared before using the variable b.they are local c.they are not initialised to zero d.they are global. TCS3
Why doesn't the code "a[i] = i++;" work?  2
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); } Motorola1
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x? Subex1
4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above Accenture4
Can u return two values using return keyword? If yes, how? If no, why?  6
Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?  1
how to find out the reverse number of a digit if it is input through the keyboard?  1
what is the difference between const char *p, char const *p, const char* const p Accenture3
Program to find the absolute value of given integer using Conditional Operators N-Tech2
which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..} TCS2
why TCS selected more student in the software field from all institution. TCS3
How can I set an array's size at run time?  7
who is the founder of c HP7
 
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