Question: Based on below c program out put answers there two questions a) Is the displayed value for variable a what you think it should be?
Based on below c program out put answers there two questions
a) Is the displayed value for variable a what you think it should be? Explain the difference in displayed output for b and c in terms of the assigned data types. Be specific.
b, Explain the difference in displayed output for d when %f is used instead of %d. Be specific.
Code: #include int main char a-127,b; unsigned char c; int d-7697264 b- a*2; c a*2 printf( "a-0d b_0d c-Odln",a,b,c); printf("d-%d d %f n",d,d); printf("&d-%sin",&d); return 0 #includestdio.h> int main() char a-127,b; unsigned char c; int d-7697264; b a*2 C- a 2 printf( "a %d b2%d c2%d " , a,b,c); printf("d-%d d %f ",d,d); printf("&d-%s ",&d); return ?; Output: hadoop@ubuntu: $ /a.out a 127 b -2 c 254 &d-psu