What is scanf funtion?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is scanf funtion??

9th Nov 2016, 5:25 PM
Mufaddal Habib
Mufaddal Habib - avatar
5 Answers
+ 3
scanf function is used in C. It is similar to cin function in c++. It is used to get inputs.
9th Nov 2016, 6:01 PM
NOORUL HUQ P M
NOORUL HUQ P M - avatar
+ 3
scanf does not work in c++. It works only in C.
9th Nov 2016, 6:07 PM
NOORUL HUQ P M
NOORUL HUQ P M - avatar
+ 1
if you do a define it work XD
9th Nov 2016, 8:45 PM
Guilamb
Guilamb - avatar
0
It is for reading variables from the keyboard in C, the equivalent of cin>> in C++ (I guess it should also work in C++).
9th Nov 2016, 6:04 PM
Giulio Pellitta
Giulio Pellitta - avatar
0
thanx guys
10th Nov 2016, 1:50 AM
Mufaddal Habib
Mufaddal Habib - avatar