Question: In the following code: #include int main(void){ char c; unsigned char uc; c = uc = 90; c = 2*c; uc = 2*uc; printf(%d ,
In the following code:
#include
int main(void){ char c; unsigned char uc; c = uc = 90; c = 2*c; uc = 2*uc; printf("%d ", c); printf("%d ", uc); return 0; }
Can someone please explain to me why -76 would be the first printed output and why 180 would be the 2nd printed output?
Please explain in detail.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
