adplus-dvertising
frame-decoration

Question

If abc is the input, then folloiwng program fragment results in
char x,y,z;
printf("%d",scanf("%c%c%c",&x;,&y;,&z;));

a.

A syntax error

b.

Garbage Values

c.

Segmentation violation

d.

Printing of 3

Posted under C Programming

Answer: (d).Printing of 3

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If abc is the input, then folloiwng program fragment results in