main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / manju
while calculating the x value,x & y values are post
incremented.So the values of x & y are added and then
incremented i.e. x=56,y=36
while calculating the y value,x & y values are
preincremtned,so x & y values are incremented and then
added i.e. x=57,y=37.
so x=57
y=57+37=94.
Is This Answer Correct ? | 58 Yes | 17 No |
Post New Answer View All Answers
What does the error message "DGROUP exceeds 64K" mean?
In which layer of the network datastructure format change is done
Can you please explain the difference between strcpy() and memcpy() function?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
int far *near * p; means
What is function and its example?
How can I open files mentioned on the command line, and parse option flags?
How can I find the modification date and time of a file?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is the usage of the pointer in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Are c and c++ the same?
What are identifiers and keywords in c?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.