why main() method should not return any value

Answer Posted / nadeem khokhar

execution starts from the main function. no function can call it, which means no function can save the returned value from main. then why should we take its return type as we can not use that any where! i do agree to jhill123 that in C we write int main instead of void main, it is used for exception handling.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

3705


diffrence between oracle apps , .NET , SAP

1606


what is the difference between read the data from table and infotype

2059


Given a set. Write the pseudo code to get all the subsets for the given set. Eg. Input : {1,2} Output : (),(1),(2),(1,2)

2234


what is delegate and delegation model give the real live example on delegate model

2821






What is the difference beween joblib and steplib statements

1785


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1614


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

1865


how to check single or double byte in struts

1567


Explain the difference between an expert and a novice user. How would your strategy for designing user interfaces for an expert user differ from that for designing user interfaces for a novice user.

2616


when a query is made on Logical file in DB2/400, will the records satisfying select/omit criterion be fetched from all members of physical file or only the member with same name as physical file?

1722


I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution

2214


Tell me the jobs for the MCA Fresher in delhi, Noida..

1903


what is the use MDM(Master Data Management)and meaning

1908


What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?

1630