main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / jaya prakash
57 94
{x=y++ + x++;}
equal to
{
x=y+x;//35+20
x++; //56
y++; //36
}
y=++y + ++x;
equal to
{
++y;//37
++x;//57
y=y+x;//37+57
}
So x=57
y=94
Is This Answer Correct ? | 219 Yes | 53 No |
Post New Answer View All Answers
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is a function in c?
How many types of arrays are there in c?
In a byte, what is the maximum decimal number that you can accommodate?
How can I find out the size of a file, prior to reading it in?
What is null in c?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
When the macros gets expanded?
What is the difference between text files and binary files?
What is the use of the function in c?
What is a scope resolution operator in c?
Are pointers integers in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Write a program to find factorial of a number using recursive function.