0

Help

When using a function, why do we need to know how it is implemented?

23rd Mar 2020, 8:17 PM
Oussama Mouh
3 ответов
+ 3
In order to use a function properly you need to understand how it works. Most importantly you will need to know the arguments it will take and the type it will return. Knowing how exactly it is implemented however is useful but often not necessary.
23rd Mar 2020, 8:53 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 3
I'm interested to know why you think you need to know how a function is implemented. I can't remember the C tutorial or any book informing me about how exactly printf, scanf, rand or whatever else there is work. Likely I wouldn't have understood anyway. Most times, you only learn the user interface: What you pass as arguments and what you get in return.
23rd Mar 2020, 9:05 PM
HonFu
HonFu - avatar
+ 1
thanks
24th Mar 2020, 8:36 PM
Oussama Mouh