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?

Answers were Sorted based on User's Feedback



In C program, at end of the program we will give as "return 0" and "return 1",..

Answer / ranjeet roy

if the return type of our function is int ..
thn it is maindetory to return something like 0 nd 1..
but if we declare the return type void
then doesnt require

Is This Answer Correct ?    21 Yes 1 No

In C program, at end of the program we will give as "return 0" and "return 1",..

Answer / 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

In C program, at end of the program we will give as "return 0" and "return 1",..

Answer / ritu

yes

Is This Answer Correct ?    0 Yes 0 No

In C program, at end of the program we will give as "return 0" and "return 1",..

Answer / sivavendra

Yes, it is mandatory to return some value if return type of main() is specified as "int"

Is This Answer Correct ?    0 Yes 0 No

In C program, at end of the program we will give as "return 0" and "return 1",..

Answer / kalyan chukka

i think 0 and 1 are the true false.

Is This Answer Correct ?    1 Yes 11 No

Post New Answer

More C Interview Questions

what is an inline function?

2 Answers   TCS,


How can I remove the trailing spaces from a string?

0 Answers   Aspire,


what is ur strangth & weekness

0 Answers   Cognizant, LG Soft, NetEnrich,


What does. int *x[](); means ?

0 Answers   Wilco,


write a program for the normal snake games find in most of the mobiles.

0 Answers   Accenture, Wipro,


What is a file descriptor in c?

0 Answers  


how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48

1 Answers  


What are valid signatures for the Main function?

0 Answers  


What is "Hungarian Notation"?

0 Answers   Celstream,


int *a[5] refers to

12 Answers   TCS,


Is c weakly typed?

0 Answers  


What are the types of type qualifiers in c?

0 Answers  


Categories