The following code will print short s; char c; S=0x9111%; c=(char)s; cout<(c<

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
The following code will print
short s;
char c;
s=0x9111;
c=(char)s;
cout<<bitset<16>(c)<<endl;
Select one:
O a. 0000 0000 0000 0000
O b. 1001 0001 0001 0001
O c. 1111 1111 0001 0001
d. 0000 0000 0001 0001
Transcribed Image Text:The following code will print short s; char c; s=0x9111; c=(char)s; cout<<bitset<16>(c)<<endl; Select one: O a. 0000 0000 0000 0000 O b. 1001 0001 0001 0001 O c. 1111 1111 0001 0001 d. 0000 0000 0001 0001
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
C-string
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage