Question: What will the following program output after reading 0 x 0 1 af 3 f 8 b from stdin? int main ( )

What will the following program output after reading "0x01af3f8b" from stdin?
int main(){
int a =20;
scanf("%i", &a);
printf("%d
", a);
return 0;
}
Question 9Answer
a.
28262283
cross out
b.
There is a syntax error
cross out
c.
0
cross out
d.
28348559
cross out
e.
-2119221365
cross out
f.
20

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!