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
Get step-by-step solutions from verified subject matter experts
