+ 12

What is the return type of scanf() and printf() in C?

12th Mar 2018, 5:43 PM
Amit Haldiya
Amit Haldiya - avatar
7 Answers
+ 11
in c language
12th Mar 2018, 5:51 PM
Amit Haldiya
Amit Haldiya - avatar
+ 8
Which language? Please specify.
12th Mar 2018, 5:48 PM
Karan Kumar
Karan Kumar - avatar
+ 8
Please go through this... your problem will be solved... https://www.hackerearth.com/practice/notes/printf-scanf-in-c/
12th Mar 2018, 5:57 PM
Pravin Pandey
Pravin Pandey - avatar
+ 7
@Amit edit your question and add "C" to the tag.
12th Mar 2018, 5:52 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 6
Please specify the language in your question. It removes any confusion and leads to more answers. If I am not wrong , this is C.
12th Mar 2018, 5:47 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 4
printf() returns a int value that it prints. for example : printf("helloamit"); the answer will be 4. it returns 4 as per 64 bit computer.
13th Mar 2018, 10:37 AM
Raj Chhatrala
Raj Chhatrala - avatar