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...

In C program, at end of the program we will give as "return 0"
and "return 1", what they indicate? Is it mandatory to specify
them?

Answer Posted / hari

yeah....... its necessary to return some value if the return type of main() is 'int'.
in fact we can return any valid integer.
here are few examples... all are correct;;;;;;>

return 0;
return 1;
return 100;
return -3;
return 'c';

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whats s or c mean?

1029


Explain union.

1176


What type is sizeof?

1039


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1864


What does the function toupper() do?

1136


What is the difference between malloc() and calloc()?

1869


What is the difference between int main and void main in c?

1182


What is printf () in c?

1091


What does node * mean?

1240


What is the difference between struct and typedef struct in c?

1128


How can I insert or delete a line (or record) in the middle of a file?

1022


Write a Program to find whether the given number or string is palindrome.

1280


Why do we need a structure?

1045


What is the difference between test design and test case design?

2093


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

1109