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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!