Question: unsigned int a, b; // we assume a>0 and b>0 Can we claim that in all cases a + b > a ? Yes or

unsigned int a, b; // we assume a>0 and b>0

Can we claim that in all cases a + b > a ? Yes or no? Why?

2. int a, b; // we assume a>0 and b>0

Can we claim that in all cases a + b > 0 ? Yes or no? Why?

3. int a, b; // we assume a<0 and b<0

Can we claim that in all cases a + b < 0 ? Yes or no? Why?

4. double x; // we assume x>0

Can we claim that in all cases 1. + x > 1. ? Yes or no? Why?

5. double a, b, c; // we assume a>0, b>0, c>0

Can we claim that in all cases a+b+c = c+b+a ? Yes or no? Why?

6. pow(-2., 3) and pow(-2., 3.0) return the same result. Yes or no? Why?

7. Constants 1. , 1 , 1.F, '1' , and "1" need the same space in memory. Yes or no? Why?

8. When we display 1/3. with precision of 20 digits all digits after the decimal point will be 3 (i.e. the result will be 0.3333...33). Yes or no? Why?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!