1. Engineering
  2. Computer Science
  3. solve these three questions and show the processes please 22...

Question: solve these three questions and show the processes please 22...

Question details

solve these three questions and show the processes please

22.Assume that the C programming language has been extended to include a type int6, which is a 6-bit signed or unsigned integer Consider the following C code: signed int6 v-14; unsigned char uv (unsigned int6) v; printf(v %d, uv-%u\n, v, uv); The value-14 has binary representation 1100102 Fill in the missing values from the output: 1M

23.Assuming the expressions are evaluated on a 32-bit machine that uses twos- complement arithmetic, fill in the following table describing the effect of casting and relational operations. Recall that TMin322,147.483,648 Expression 2147483647-1U 2147483647 2147483647-1-2147483647 Type Evaluation

24.Suppose we truncate a 8-bit integer 000101002 with signed representation 20 and unsigned representation 20 to a 5-bit integer 101002 What is the decimal value of the truncated value when represented as unsigned? What is the decimal value of the truncated value when represented as signed?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution