Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Spend at most 3 minutes on this. The value of c will display as 6 5 5 2 4 in the code below. char a

Spend at most 3 minutes on this.
The value of c will display as 65524 in the code below.
char a =-12;
unsigned short c = a;
printf("%d", c);
Which of the following is true?
Question 11 options:
both a and c stored using 8-bits, the highest 8 bits of c are ignored
a stores -12 using the 16-bit two's compliment model
both a and c are stored using 16-bits, the highest 8 bits of a are set to 0
both a and c are stored using 16-bits, the highest 8 bits of a are set to 1
a is stored using 8 bits, c is stored using 16 bits, the highest 8 bits of c are set to 1
the highest 8 bits of c are set to 1, the lowest 8 bits of c are set to 12

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago

Question

What tools might be helpful?

Answered: 1 week ago