why main() method should not return any value

Answer Posted / jhil123

It is possible if we declare main() function return value
as void. This is because the default return value of main
function in C is int and if one declares it as void it
results in mismatch in declaration and so cannot be
declared as void.

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)

1943


How will you prove that java swing is multithreaded?

2020


why we use mantis? what u mean mantis in IT trends? addvantages of mantis?

1962


What is the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?

1804


What is SOLID Principle in Programming Language?

893


Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage

1723


What is Negative testing?

1713


what are the things i had to say in personal introduction in hr round mail me to prasanna.1867@rediff.com

1887


how CLR identify vb file?

2723


what do u mean by tagging

1816


what is adodb??y it is used for connection of V.B and access??what is ado?dao?

1977


why not instantiating servet using new operator?

1705


Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,

2083


i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared

1325


how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?

2052