Question: 1 . i ) ( 3 points ) Consider the following scanf call: scanf ( % f % d % f

1. i)(3 points) Consider the following scanf call:
scanf("\%f\%d\%f",\&a,\&b,\&c);
If the user enters 12.345.6128, what will be the value of \( a, b \), and \( c \). Note that \( a \) and \( c \) are float-type variables and b is an int variable. Support your answer with appropriate explanation.
ii)(3 points) Determine the output of the following fragment. Explain how.
```
i =10; j =5;
printf("%d ", i++-++j);
printf("%d %d", i, j);
```
iii)(3 points) Determine the output of the following fragment. Explain how.
```
i =7;
j =3+--i *2;
printf("%d %d", i, j);
```
2.(5 points) What output the following fragment will produce? Explain why. How would you re-write the fragment if you wanted the intended output (i.e. "one")?
```
i=1;
switch (i %3){
case 0: printf("zero");
case 1: printf("one");
case 2: printf("two");
}
```
3.(5 points) Write a single expression whose value is either \(-1,0\), or +1, depending on whether i is less than, equal to, or greater than j , respectively with and without using conditional operator.
1 . i ) ( 3 points ) Consider the following scanf

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 Programming Questions!