C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Function

By David Bolton, About.com

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

Explore C / C++ / C#

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. F
  6. Function - Definition

©2009 About.com, a part of The New York Times Company.

All rights reserved.