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;
}
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers