main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}

Answer Posted / s mahesh babu

56 and 93....

why bcz..... x=y++ + x++; in this expression xy values are post increment mean .. value not change so x=20+35-->55;

in next expression y=++y + ++x;...... so y & x pre increment ... here y=37+56.... 93

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of local variable in c?

567


number of times a digit is present in a number

1534


What is the advantage of an array over individual variables?

728


What is header file definition?

561


Tell me is null always defined as 0(zero)?

664






What are identifiers in c?

624


about c language

1592


Explain what are linked list?

613


Write a program to print "hello world" without using a semicolon?

587


What is modifier & how many types of modifiers available in c?

598


plz let me know how to become a telecom protocol tester. thank you.

1736


What is spaghetti programming?

661


Explain 'bus error'?

546


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1780


Describe the header file and its usage in c programming?

611