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

what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}

Answer Posted / ravinderreddy

answer will be 0 not 1

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there anything like an ifdef for typedefs?

1147


what is the significance of static storage class specifier?

2254


Explain what is the benefit of using enum to declare a constant?

1078


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

2253


What does 1f stand for?

1157


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

1066


What is the difference between functions abs() and fabs()?

1153


Why c language is called c?

1012


How can a program be made to print the name of a source file where an error occurs?

1222


What is assert and when would I use it?

1003


What do you mean by dynamic memory allocation in c?

1101


What is structure data type in c?

1019


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

1087


How can I write functions that take a variable number of arguments?

1128


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1283