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

Hi guyes, I have cleared 2 technical rounds with cts for liferay and java techonologies, i have client round next week, please tell me how to prepare for this what questions i should be ready to face?

3599


Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?

1721


What is the difference beween joblib and steplib statements

2042


In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..

1261


how can i split string in a textbox in windows appication using C#.net

2469


I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard

1754


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

4008


is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...

1851


HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??

2023


What are two of your strengths that you will bring to our QA/testing team?

1865


How does the TCP handle the issue of multiplexing?

2615


Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.

1045


Define distributed queries. can you explain me as soon as possible

1876


One boy has to climb steps. He can climb 1 or 2 steps at a time. Write a function that will returns number of way a boy can climb the steps. Int WaytoSteps(int n) (eg:- suppose number of steps is n=4 ,the function will return 5 (one-one-one-one ,one-one-two, one-two-one-,two-one-one, two-two)

3302


How will you prove that java swing is multithreaded?

2043