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

Is file a keyword in c?

0 Answers  


What are the advantages of Macro over function?

1 Answers  


Explain how do you declare an array that will hold more than 64kb of data?

0 Answers  


What is the difference between functions abs() and fabs()?

0 Answers  


#include<stdio.h> #include<conio.h> void main() { int m=0111,n=20; printf("%d%d\n",m,n); getch(); }

1 Answers  






Explain how to reverse singly link list.

0 Answers  


Is c a great language, or what?

0 Answers  


we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?

2 Answers   Convergys,


What is scope rule of function in c?

0 Answers  


write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?

4 Answers  


what type of errors are checked during compilation

3 Answers  


what is meant by the "equivalence of pointers and arrays" in C?

3 Answers   Satyam,


Categories