adplus-dvertising
frame-decoration

Question

If the following program fragment(assume negative numbers are stored in 2's complement form), output is (log in answers are to the base two)
unsigned i=1;
int j=-4;
printf("%d",8*size of(int));

a.

An unpredictable value

b.

8*log(x+3)

c.

log(x+3)

d.

None of these

Posted under C Programming

Answer: (c).log(x+3)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If the following program fragment(assume negative numbers are stored in 2's complement form), output is (log in answers are to the base two)