You are here:About>Computing & Technology>C / C++ / C#> Glossary> F> Function - Definition
About.comC / C++ / C#
Suggested Reading

Inline Functions

"Definition of Function"

From David Bolton,
Your Guide to C / C++ / C#.
FREE Newsletter. Sign Up Now!
Definition: A function is a block of code that performs a calculation and returns a value.

y = sin( alpha ) ;
This call a function to calculate the sin of the angle stored in the variable alpha.

All procedural computer languages including C,C++ and C# provide libraries of functions to manipulate strings, maths,time/date and file handling, and programmers can also write their own functions.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Also Known As: procedure, subroutine
Examples: The function calculated the price of an interest rate swap
Suggested Reading

Inline Functions

 All Topics | Email Article | Print this Page | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.