#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 / sunil v r

11,6,11

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c program in such a way that if we enter the today date the output should be next day's date.

1660


what are the advantages of a macro over a function?

621


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

598


to find the closest pair

1802


What is function in c with example?

604






How many types of sorting are there in c?

583


In a header file whether functions are declared or defined?

609


How variables are declared in c?

538


What is wrong with this initialization?

564


Can include files be nested?

608


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4149


code for quick sort?

1584


what is use of malloc and calloc?

1358


How can I read data from data files with particular formats?

577


Write a program on swapping (100, 50)

609