r/C_Programming • u/Historical-Boot-5119 • Sep 19 '26
Does this is right?
(I am student just entering into 1st year of engineering and also i am new to this sub so if i do anything wrong pls correct me)
I just bought a book " programming in ANSI C"and start to read that i have some doubts in that can anyone explain that
- I read this line i did not get this
#include <stdio.h>
at the beginning of all programs that use any input/output library functions. However, this is not necessary for the functions printf and scanf which have been defined as a part of the C language
Can anyone explain this statement correct or not
0
Upvotes
View all comments
Show parent comment
2
u/aioeu Sep 19 '26 edited Sep 19 '26
You don't understand my answer, or you don't understand what the book was trying to say?
I don't think I can word my answer any better. As for the book... I think its author misunderstands this bit of C.
Edit: Oh, I think I see what you're saying now. The author of the book looked at K+R and saw that
printfwas not part of the language. Maybe so. But it's weird they called outprintfandscanfspecifically, as distinct from other "input/output library functions".