C Programming and Technical Programming Program

Assunming, integer is 2 byte, What will be the output of the program?
#include

int main()
{
printf("%xn", -2<<2);
return 0;
}
Options
1) ffff
2) 0
3) fff8
4) Error

Read Solution (Total 1)

C Other Question

What will be the output of the program?
#include
int main()
{
int x=12, y=7, z;
z = x!=4 || y == 2;
printf("z=%dn", z);
return 0;
}
Options
1) z=0
2) z=1
3) z=4
4) z=2
In which order do the following gets evaluated
1. Relational
2. Arithmetic
3. Logical
4. Assignment

Options
1) 2134
2) 1234
3) 4321
4) 3214