Тёмный
No video :(

What will be the output if value "str" given to scanf()?  

Rudra Singh
Подписаться 14 тыс.
Просмотров 80
50% 1

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.

Опубликовано:

 

4 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
@programmingwallah2905
@programmingwallah2905 10 месяцев назад
1
Далее