0
Help
When using a function, why do we need to know how it is implemented?
3 Réponses
+ 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.
+ 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.
+ 1
thanks