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

how do i add a column dynamically in a table by using java application?

1983


Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.

930


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

2502


what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct

2137


Can any one give an example (Source Code) on virtual function implemetation in Java?

1972


How to call a C++ function which is compiled with C++ compiler in C code?

1267


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

2158


5.Call by value and Call by reference with program?

2242


Have you used callsymputx? what points need to be kept in mind when using it?

1943


Find out the list of roles which gives access to GUI activities? thanks in advance

2101


Which design patterns have you used?

1958


hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

2055


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

1045


what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?

2518


how can i create report in abap to insert data in table pa0002 using insert command

2164