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 ? | 223 Yes | 59 No |
Post New Answer View All Answers
Tell us two differences between new () and malloc ()?
Can the size of an array be declared at runtime?
Is linux written in c?
What are local static variables? How can you use them?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is type qualifiers?
What header files do I need in order to define the standard library functions I use?
What is a pointer on a pointer in c programming language?
how we can make 3d venturing graphics on outer interface
How are variables declared in c?
What is the ANSI C Standard?
Is fortran faster than c?
What is the difference between the expression “++a” and “a++”?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
Array is an lvalue or not?