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
What is the scope of local variable in c?
number of times a digit is present in a number
What is the advantage of an array over individual variables?
What is header file definition?
Tell me is null always defined as 0(zero)?
What are identifiers in c?
about c language
Explain what are linked list?
Write a program to print "hello world" without using a semicolon?
What is modifier & how many types of modifiers available in c?
plz let me know how to become a telecom protocol tester. thank you.
What is spaghetti programming?
Explain 'bus error'?
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.
Describe the header file and its usage in c programming?