Answer - A
Explanation -
The scanf() function returns the number of fields that were successfully converted and assigned.
scanf() in this program expecting integer value or value that can be converted to integer but we provide input as "str" which is string.
As "str" is not integer and it can not be converted to integer hence no value is successfully converted and assigned and hence scanf() will return 0 and printf() is used to output this 0.
--------------------------------------------------------------------------
Music:RU-vid Audio Library
--------------------------------------------------------------------------
Thanks for watching.
Do like, share and subscribe.
15 сен 2024