C Programming :: Operators and Expressions
- Which operator from the following has the lowest priority?
-
Identify the correct output of the following code:
void main()
{
int w=10, x=5, y=3, z=3;
if( (w < x ) && (y=z++) )
printf("%d %d %d %d", w, x, y, z);
else
printf("%d %d %d %d", w, x, y, z);
}
- Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5?
-
void main()
{
int a=10, b;
b = a++ + ++a;
printf("%d %d %d %d", b, a++, a, ++a);
}
what will be the output when following code is executed?