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


Please Help Members By Posting Answers For Below Questions

What does the error message "DGROUP exceeds 64K" mean?

720


In which layer of the network datastructure format change is done

1422


Can you please explain the difference between strcpy() and memcpy() function?

591


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

569


int far *near * p; means

3108






What is function and its example?

616


How can I open files mentioned on the command line, and parse option flags?

581


How can I find the modification date and time of a file?

595


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?

1764


What is the usage of the pointer in c?

596


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2584


Are c and c++ the same?

621


What are identifiers and keywords in c?

558


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

913


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.

1718