main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / manishsoni
here first in
x = y++ + x++;
x=35+20;
x=55;
then x is incresed by 1;
x=56;
y=36
y=++y + ++x;
y=++36 + ++56;
y=37+57;
y=94;
x=57;
now the value of x = 57.
therefore,after performing all operatioins we get,
x==57 And y==94....
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Is c still used?
Is main is user defined function?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
How can you be sure that a program follows the ANSI C standard?
Explain what is the difference between text files and binary files?
What are the types of operators in c?
In C, What is the #line used for?
What’s the special use of UNIONS?
What are bitwise shift operators in c programming?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is page thrashing?
What does the error message "DGROUP exceeds 64K" mean?
Under what circumstances does a name clash occur?
Difference between macros and inline functions? Can a function be forced as inline?
what is the significance of static storage class specifier?