C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - Find Output of Program (Q.No. 5)
5.
What will be the output of the program?
#include<stdio.h>

int main()
{
    unsigned char i = 0x80;
    printf("%d\n", i<<1);
    return 0;
}
0
256
100
80
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
65 comments Page 7 of 7.

Mehul said:   1 decade ago
@Apurva Nigam Thanks a lot.

Sunil sharma,kaverinagar said:   1 decade ago
What do you mean by 0*80?

Siva said:   1 decade ago
Nice explination apurva.

Kee said:   2 decades ago
Pleases give the step.

Madureddy said:   1 decade ago
Yes Kasi is correct.


Post your comments here:

Your comments will be displayed after verification.