What is the difference between void main() and int main()?



What is the difference between void main() and int main()?..

Answer / nashiinformaticssolutions

void main() is not standard; int main() is required by the C standard to return an integer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is Function Pointer? Explain with example?

3 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it

5 Answers   ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,


Explain enumerated types.

1 Answers  


#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 Answers  


can any one tel me wt is the question pattern for NIC exam

1 Answers   NIC,


will u give me old quesrion papers for aptitude for L & t info tech?

1 Answers   Hindustan, L&T,


what is a function method?give example?

1 Answers  


What does a pointer variable always consist of?

1 Answers  


What is the difference between near, far and huge pointers?

1 Answers  


What are the different types of control structures?

1 Answers  


What is meant by inheritance?

1 Answers  


Write a program to find the smallest and largest element in a given array in c language

11 Answers   Microsoft, Vembu,


Categories