In the following program I am trying to left shift a char variable.
Code:int main() { unsigned char c='0x0A'; printf("%c", (c << 4)); return 0; }
When I compile and run the program then it is giving garbage value. My requirement is 0xA0. Any suggestions on this.