C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
47 / 90
Choose the correct option.
What would be the values assigned to a, b, c, if the statement scanf("%d %d %d", &a, &b, &c) is extended with input data item 123466 ?
Aa = 12, b = 34, c = 56
Ba = 1, b = 2, c = 3
Ca=123456 and nothing is assigned to b and c
Da and b are not assigned anything, c = 123456
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
TRICK
Option C will be the correct option, but the input we are giving is 123466, so value of a= 123466 and not a=123456. Also, nothing will be assigned to b and c.
Read Full Answer
Report Error
Please Login First Click Here