#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

Explain the difference between call by value and call by reference in c language?

651


How can I rethow can I return a sequence of random numbers which dont repeat at all?

709


Why clrscr is used after variable declaration?

1045


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

675


how should functions be apportioned among source files?

627






How many loops are there in c?

584


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

677


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)

1629


When can you use a pointer with a function?

573


Explain setjmp()?

661


What is the meaning of 2d in c?

617


What is the size of enum in bytes?

592


What is the use of pragma in embedded c?

595


Multiply an Integer Number by 2 Without Using Multiplication Operator

326


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

728