Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the spaces provided, show what is printed by each of the indicated lines in the following program, main () long btoi (const char*); /*

image text in transcribed
image text in transcribed
In the spaces provided, show what is printed by each of the indicated lines in the following program, main () long btoi (const char*); /* Convert binary no. in string form to decimal value */ void print_float (double); /* Print a float in decimal */ void print_decimal (short int); /* Print a short integer in decimal */ void print_octal (short int); /* Print a short integer as six octal digits */ void print_hex (short int); /* Print a short int as four hexadecimal digits */ void print_binary-char (char); /* Print a char in binary */ void print_binary_short_int (short int); /* Print a short int in binary */ void print_binary_float (float); /* Print IEEE binary rep. of a float */ short int i,j,k,l,m; signed char x,y: float f; i-29873: print_hex(1): EX1-1 (8 points) j-17832; print_octal(); EX1-2 (8 points) k-btoi ("0000000010110011"); print_decimal(k); EX1-3 (8 points) 1-btoi ("1100100101100010"); print_octal(1): EX1-4 (8 points) n-Oxd5a9; print_binary_short int(m); EX1-5 (8 points) x=btoi ("11001000"); yobtoi("01110101"): print_binary_char(xky); EX1-6 (8 points) print_binary-char(xly); EX1-7 (8 points) print_binary-char (x*y); EX1-8 (8 points) print_binary-char("x); EX1-9 (4 points) print_binary-char(y>3); EX1-11 (8 points) print_binary-char (xky): EX1-12 (4 points) f=-9.75; print_binary_float(1); EX1-13 (12 points) exit(0)

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

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

Discuss communication challenges in a global environment.

Answered: 1 week ago