Question: 4.50,4.51 and 13.39 please answer all the question 4.50 AC program contains the following statements #include char a, b, c; (a) Write appropriate getchar statements

4.50,4.51 and 13.39 please answer all the question 4.50 AC program contains4.50,4.51 and 13.39 please answer all the question

4.50 AC program contains the following statements #include char a, b, c; (a) Write appropriate getchar statements that will allow values for a, b and c to be entered into the computer (b) Write appropriate putchar statements that will allow the current values of a, b and c to be written out of the computer (i.e., to be displayed) 4.51 Solve Prob. 4.50 using a single scanf function and a single printf function rather than the getchar and putchar statements. Compare your answer with the solution to Prob. 4.50 13.39 Suppose that a is an unsigned integer whose value is (hexadecimal) 0xa2c3. Write the corresponding bit pattern for this value. Then evaluate each of the following bitwise expressions, first showing the resulting bit pattern and then the equivalent hexadecimal value. Utilize the original value of a in each expression. Assume that a is stored in a 16-bit word. a) -a (b) a & 0x3f06 (c) a 0x3f06 (d) a | Ox3f06 (e) a & -0x3f06 (h) a >> 3 j) a & -a (k) a * -a (D) a l -a (m) a & 0x3f06

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!