#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
What are variables and it what way is it different from constants?
What is 1d array in c?
How pointer is different from array?
What is an operator?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What are header files? What are their uses?
What is adt in c programming?
Do you know the difference between exit() and _exit() function in c?
How to declare a variable?
Explain a pre-processor and its advantages.
What are the back slash character constants or escape sequence charactersavailable in c?
Explain what are multidimensional arrays?
What is the use of gets and puts?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Write a function that will take in a phone number and output all possible alphabetical combinations