Every function has a default return type as int .. void main () ensures that the main function does not return anything
Posted by: Zoheb
Void main,void means doesn't return anything.void is a garbage collection of values.The default return type will be int.
Posted by: krithikha
void main() - It will not return anything...
main() - It will return a value of type int...
main(void) - It will return a value of type int without taking any arguments...
Posted by: richa
void main() returns NULL to the os as dennis richtie said n main() return the integer value coz default work as a int main().
Posted by: nitin R S Chaudhary
Contact nitin R S Chaudhary
As per may Knowledge every function has a default return type as int .. so, main() returns a int value, but void main () ensures that the main function does not return anything..
Posted by: Saday Kumar
Contact Saday Kumar
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.
Answer should be complete in itself.