Question: 1 . i ) ( 3 points ) Consider the following scanf call: scanf ( % f % d % f
i points Consider the following scanf call:
scanffdf&a&b&c;
If the user enters what will be the value of a b and c Note that a and c are floattype variables and b is an int variable. Support your answer with appropriate explanation.
ii points Determine the output of the following fragment. Explain how.
i ; j ;
printfd ij;
printfd d i j;
iii points Determine the output of the following fragment. Explain how.
i ;
j i ;
printfd d i j;
points What output the following fragment will produce? Explain why. How would you rewrite the fragment if you wanted the intended output ie "one"
i;
switch i
case : printfzero;
case : printfone;
case : printftwo;
points Write a single expression whose value is either or depending on whether i is less than, equal to or greater than j respectively with and without using conditional operator.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
