Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

2655


how to remove header and footer in jcl using sort utility

5548


Difference between views and index in sas programming

1519


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

2328


Difference between debugging, running, executing of an application

4049


could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?

1747


Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile

2068


Outline the two important features of a terminating recursion. Any ideas?

2216


Display names and numbers of employees who have 5 years or more experience and  salary less than Rs.15000 using array of structures (name, number, experience and  salary)

4743


I am work in it aompenei

1430


Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.

1078


Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.

2722


What are the tasks performed by a Team Lead

2844


8.In DSP,Define Signal and System?and various type of signals.

2035


For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?

3651