#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 / amitesh
i=11 j=6 k=10
| Is This Answer Correct ? | 9 Yes | 9 No |
Post New Answer View All Answers
number of times a digit is present in a number
What is #include stdio h and #include conio h?
how to construct a simulator keeping the logical boolean gates in c
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
List the difference between a "copy constructor" and a "assignment operator"?
Is there anything like an ifdef for typedefs?
What is FIFO?
Write a program to find factorial of a number using recursive function.
What is the difference between exit() and _exit() function in c?
What is scope and lifetime of a variable in c?
What is function definition in c?
can we change the default calling convention in c if yes than how.........?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What are the string functions? List some string functions available in c.