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

#define MAX(x,y) (x) > (y) ? (x) : (y)
main()
{
int i = 10, j = 5, k = 0;
k = MAX(i++, ++j);
printf("%d %d %d", i,j,k);
}

what will the values of i , j and k?
}

Answer Posted / amit kumar ram

i=11, j=6 , k=10.

bcoz i=10 and j=6 pass to function
then check and give k=x which is k=10
then increament i by 1 i.e i=11.

Is This Answer Correct ?    20 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a factorial program using C.

1021


Explain why C language is procedural?

1168


What is console in c language?

1051


What is a dynamic array in c?

1078


What is the difference between a function and a method in c?

1037


Explain how can type-insensitive macros be created?

957


What is the difference between far and near in c?

1000


How to throw some light on the b tree?

1023


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1230


How do I swap bytes?

1026


Why c is a procedural language?

1012


What are the ways to a null pointer can use in c programming language?

1080


What is the difference between single charater constant and string constant?

1036


Differentiate abs() function from fabs() function.

965


Which is an example of a structural homology?

1251