main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / c
x=y++ + x++;
here we should assign the value and then the increment
the value and the new value should be stored in a specified
variable....
here it is......
X= 35 (value=36 is stored in y) + 20 ( value=21
is stored in x);
X=55
NOw the value of x=55..and Y=36..the next expression
changes to like this...
Y= 37+56=93
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
How can I generate floating-point random numbers?
What is the c language function prototype?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
List the variables are used for writing doubly linked list program.
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
Why do we use int main?
What is c system32 taskhostw exe?
How will you divide two numbers in a MACRO?
Why is c called c not d or e?
What is restrict keyword in c?
Describe explain how arrays can be passed to a user defined function
What is string function in c?
How can I manipulate strings of multibyte characters?
Ow can I insert or delete a line (or record) in the middle of a file?
What is calloc in c?