Fast C programming tutorial 3 - user input using scanf

preview_player
Показать описание

scanf function is used to take input from user through keyboard.

synntax for scanf:
scanf is function name and after that round bracket having inside double quote marks is present. inside of double quote mark, we write the %d, %c, %s etc symbols for respective integer, char, string etc variables respectively.
after completing quote mark but before completing round bracket the address of variable name is written with separating it from quote mark by comma. address is indicated by '&' sign e.g. &variable-name
and at the end semicolon is given to complete the statement.
in this way we can use scanf function from stdio library.

i hope that you have liked my video....
it won't take even a second to like and subscribe, so do it if my video helped you.........
Рекомендации по теме
welcome to shbcf.ru