Question

Consider the following code. What will be printed out by the code?

int main {
char c
11
char d
12
printf("%d %d \n", c, d);
printf ("%d \n"
printf ("%d \n",
c & d)
d);
C
unsigned char n
printf("%d %d \n", n, c);
unsigned char m = d << 2;
printf ("%d %d \n", m, d)
C >3;

Image Transcription

int main { char c 11 char d 12 printf("%d %d \n", c, d); printf ("%d \n" printf ("%d \n", c & d) d); C unsigned char n printf("%d %d \n", n, c); unsigned char m = d << 2; printf ("%d %d \n", m, d) C >3;

Expert Answer

Want to see the step-by-step answer?

See Answer

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

See Answer
*Response times vary by subject and question complexity. Median response time is 34 minutes and may be longer for new subjects.
Tagged in
EngineeringComputer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by student like you
Show more Q&A

Q: What are the SQL commands to create TABLE BOOK, that includes  both primary and foreign keys, with t...

A: Primary key:A PRIMARY KEY is used to uniquely define every tuple in a table. The PRIMARY KEY imposes...

Q: Write a program in Java Eclipse that does the following:a) create a 2D Ragged array with columns and...

A: Create a Main class and all required methods to print Ragged array elements. And create all methods ...

Q: What are the different computer languages? Give a brief description of each.

A: DefinitionLanguage is the basic way of communication between the computer systems and to communicate...

Q: Which one of the following is NOT true with arc implementation of the super- and sub-typeentitiesA) ...

A: When the subtypes were modeled as standalone entities with each one having as is subtype of or is su...

Q: Arrays Write three statements to print the first three elements of array runTimes. Follow each state...

A: Note: As the user given index value is constant and so the value of index will not be changed while ...

Q: Please help me with this, I'm stuck...

A: The DFA is a 5- tuple {Q, ∑, q, F, δ}:Q = {q0, q1, q2, q3, q4}∑ = w | w is a string over {a, b} that...

Q: Write a program TwoSmallest.java that takes a set of double command-line arguments and prints the sm...

A: Create a class and main method and in the main method declare all required variables to find the fir...

Q: program3_1.pyShipping is free for online orders totaling $25 or more at Mississippi.com. Orders less...

A: round() function is used to round the number.Syntax of round function:round(number [, ndigit])number...

Q: What challenges did Cisco systems face in order to solve the physical security problems?

A: Click to see the answer