Question: Programming in C 5. (10 pts) What is the value in decimal) of X in each case below? Give the expression based on which you
Programming in C
5. (10 pts) What is the value in decimal) of X in each case below? Give the expression based on which you arrive at your value. Assume 4 bytes are used to store int and float, 8 for long, double, and long double. a. int x; X = 'F' + 10; b. float x; X = sizeof(char) + (float) sizeof(1.0L); c. int C = 3; X = 'A' + 'E'-5*C + 'C'; 6. (10 pts) Suppose the variables cand offset are defined by the following statements: char c = ''; int offset = 'e' -'E'; Write C commands that turn into an upper case 'F' using the value in offset and then print the character represented by C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
