Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started