main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / fazlur rahaman naik
x = 57 and y = 94.
because the value of x = y++ + x++(35 + 20) is 55 and then
it incremented here x++ i.e.56 and the value of y = 36 and
then the value of y = ++y + ++x(57 + 37) = 94.
| Is This Answer Correct ? | 38 Yes | 8 No |
Post New Answer View All Answers
Tell me can the size of an array be declared at runtime?
What is LINKED LIST? How can you access the last element in a linked list?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is default value of global variable in c?
Describe how arrays can be passed to a user defined function
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Explain function?
What do you mean by recursion in c?
What does volatile do?
What is structure padding in c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Why is c called c not d or e?
simple program of graphics and their output display
What is a struct c#?
What are the differences between Structures and Arrays?