AmbitionBox

Discover Best Places to work in India

C Programming

C Programming Questions and Answers

Showing 11 - 12 of 12 questions

11

What will be the output of the program?

#include < stdio . h >int main()
{
    unsignedint res;
    res = (64 >>(2+1-2)) & (~(1<<2));
    printf("%d\n", res);
    return0;
}
a

32

b

64

c

0

d

128

correct answer a
Answer :

Option A

12

What will be the output of the program ?

#include < stdio . h >int main()
{
    int i=4, j=8;
    printf("%d, %d, %d\n", i|j&j|i, i|j&&j|i, i^j);
    return0;
}
a

4, 8, 0

b

1, 2, 1

c

12, 1, 12

d

0, 0, 0

correct answer c
Answer :

Option C

Select a company to compare with

vs

Similar Companies