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

Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com

1820


What is the Difference between in memory database and physical database

2190


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

2910


Which method protects back button to retrieve old value from previous page in Struts.

1542


what is the basic and unique feature of dotnet

1801






hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced

1671


Find out the list of authorization objects which contains activity as a field? Thanks in advance.

1856


can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com

2039


Which language they use during interview?

1610


Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

701


a characteristic of a multiprogramming is? a.simultaneous exe of pgm instr 4m 2 appli b.concurrent processing of 2 r more prgms c.multiple cpu s d.all the abov

1781


what is the current salary package in India for a lamp programmer

1969


what is log files in qtp what is use

1693


Can we write a method in JSP.If so how?

1568


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

1959