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

Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

1155


Why is it important to memset a variable, immediately after allocating memory to it ?

2131


What is modeling?

1096


What is difference between array and structure in c?

1264


What is difference between arrays and pointers?

1148


Why main function is special give two reasons?

1601


What are extern variables in c?

1035


If fflush wont work, what can I use to flush input?

1151


application attempts to perform an operation?

2030


Differentiate between ordinary variable and pointer in c.

1252


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1222


What are structural members?

1066


Explain how are portions of a program disabled in demo versions?

1173


Why pointers are used?

1116


What is union in c?

1164