English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

Does the phrase "user defined" mean anything to you?
.

2007-12-02 01:28:20 · answer #1 · answered by ? 7 · 0 0

A user defined function is something you the programmer has defined to perform a specific action or calculation in your program.

Example, you need to calculate somebody's age to the nearest minute. You create a calculateAge function:

double calculateAge(Date dateOfBirth)
{
}

So it is specific to your needs at this time.

A library function has been written by someone else, and is reusuable by many programmers to solve the same problem over and over.

Example: strcpy in C. If you are using C, you will never need to write functions for string manipulation because somebody else did that a long time ago...

2007-12-02 01:31:35 · answer #2 · answered by Big John Studd 7 · 0 0

fedest.com, questions and answers