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

How do we print only part of a string in c?

970


What is bash c?

954


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1074


When should we use pointers in a c program?

1078


What are types of functions?

969


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

10136


What is echo in c programming?

962


Tell us something about keyword 'auto'.

1009


What is a keyword?

1119


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

1094


Explain about C function prototype?

1025


what is event driven software and what is procedural driven software?

2505


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1087


How can I do serial ("comm") port I/O?

1128


What is the best style for code layout in c?

1043