Question: What will be printed after reading 1 0 7 8 5 3 0 0 1 1 . 5 0 , 1 0 0

What will be printedafter reading "1078530011.50,100" from stdin?
int main(){
float a =0;
int b =0, c =0;
scanf("%d%d,%i", &a, &b, &c);
printf("%f %d %d
", a, b, c);
return 0;
}
Question 2Answer
a.
1078530011.500100
cross out
b.
000
cross out
c.
There is a compilation error
cross out
d.
3.14159300
cross out
e.
0.0000000100
cross out
f.
107853001150100

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!