Since there are two types of functions; Library functions and user-defined functions....when we define a function in a program, does that function get stored in the standard library just like the library functions?
When we define functions in a program, do they get stored in the standard library?
686 views Asked by Sahil Bhalla At
3
There are 3 answers
0
On
Library functions are previously written and stored functions which we can use by calling them.
While user defined functions are written by the programmers based on their requirements, to use these functions first we have to define it and then we have to call it.
And when you define a function those are not going to be getting saved in standard library.
When we
define
a function , it is not itself added to any library or object file. YOU need to create the object file [user functions] or library [static/dynamic] yourself. So. there is no concept ofget stored
as you asked. It entirely depends on what you are doing with your source code.