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

how should functions be apportioned among source files?

1058


What is a dynamic array in c?

1072


What are the loops in c?

943


Does * p ++ increment p or what it points to?

1054


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1047


By using C language input a date into it and if it is right?

1021


Tell me with an example the self-referential structure?

941


What is an example of structure?

981


What is #ifdef ? What is its application?

1054


What is clrscr in c?

1073


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2045


What is a #include preprocessor?

1076


Write a program for Overriding.

1121


What is the difference between typedef struct and struct?

1066


What is the difference between near, far and huge pointers?

1033