Question: 1) Assume x is an integer type variable and assigned a value 10. Which one of the statements below is true after the execution of

1) Assume x is an integer type variable and assigned a value 10. Which one of the statements below is true after the execution of command x= `expr $x > 5 `?

2) Assume that a program contains the following declarations: char c = '\1'; short s=2; int i=-3; float f=6.5f; double d=7.5

Give the type of each expression listed below:

a) c/i

b) f-c

c) d*s

d) f+d

3) True or False: The following while statement in C will never terminate.

i = 2;

while ( i =2 ) {

i++;

}

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!