Question: Which variables would read in values from stdin with input 1 2 . 3 0 2 1 . 3 2 int main (

Which variables would read in values from stdin with input "12.3021.32"
int main(){
int a =0, b =0;
float c =42;
scanf("%f%i%d", &a, &b, &c);
return 0;
}
Question 1Answer
a.
Only a
cross out
b.
There is a syntax error
cross out
c.
All the variables will read in values
cross out
d.
No variable will read in values
cross out
e.
Only a and b

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!