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 are Macros? What are its advantages and disadvantages?

0 Answers   TCS,


What is the real difference between arrays and pointers?

27 Answers   Hexaware, Logic Pro, TCS,


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

0 Answers  


write a program to sort the elements in a given array in c language

10 Answers   TCS,


program to find the magic square

1 Answers   Infosys,






write a programming in c language, 1 3 5 7 9 11

2 Answers   NIIT,


how to print this sereis 2 4 3 6 5..........?

3 Answers  


Software Interview Questions

1 Answers   CAT,


Define the scope of static variables.

0 Answers  


int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?

14 Answers   Verifone,


Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….

1 Answers  


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

0 Answers  


Categories