100 For this question check all that apply Given def ine n 2

100% For this question, check all that apply. Given #def ine n 2000000000 and int and float are 32-bit (with IEEE 754 compliant floats), which of the following C code fragments would print 1? int a, b;a=N;b=a+l; printf(\"%d\", (a==b); int i; for (i=0; i

Solution

1.
It would print 0
a = 2000000000
b = 2000000001
So, a == b is false.


2.
It would print 1
i = 2000000000
the loop will stop afteri becomes 2000000000
So, i == N is true.


3.
It would print 1
a = 2000000000
b = 2000000000
So, a == b is true.


4.
It would print 1
i = 2000000000
the loop will stop afteri becomes 2000000000
So, i == N is true.

 100% For this question, check all that apply. Given #def ine n 2000000000 and int and float are 32-bit (with IEEE 754 compliant floats), which of the following

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site