FEATURED VIDEO

SLIDE SHOWS
The chip giant adds new remote management, encryption and anti-theft tools baked right into next-gen Intel Core vPro processors for commercial desktops and notebooks.
The long-awaited iPad has arrived. But here are 12 other tablet devices that will take aim at Apple this year as the suddenly crowded tablet PC market heats up.
Going green was the rage of 2009, and the buzz in 2010 isn't letting up. Manufacturers are responding to increased demands from their white box makers for more eco-friendly components.
INSIDE CHANNELWEB

Results found for: function
Printer Print This Page
techweb
function
techweb
In programming, a self-contained software routine that performs a task. Functions can do a large amount of processing or as little as adding two numbers and deriving a result. Values are passed to the function, and values may be returned. Or, the function may just perform the operation and not return a resulting value. The concept of a function within a program is that, once written, it can be used over and over again without the programmer having to duplicate the same lines of code in the program each time that same processing is desired.

Standard and Programmer-Defined
Programming languages provide a set of standard functions as well as allow programmers to define their own functions. For example, the C and C++ programming languages are built entirely of functions and always contain a "main" function.

The Application Programming Interface (API)
Functions in one program can also be called for by other programs and shared. For example, operating systems can contain more than a thousand functions to display data, print, read and write disks and perform a myriad of tasks. Programmers write their applications to interact with the OS using these functions. This list of functions is called the "application programming interface" (API).

Function Calls
Functions are activated by placing a "function call" statement in the program. The function call often includes values (parameters) that are passed to the function. When called, the function performs the operation and returns control to the instruction following the call. The function may return a value or not. Writing a program in a language such as C/C++ involves calling language functions, one's own functions and operating system functions (APIs). There is a whole lot of function calling. See function prototype, API and interface.

A Function Call Example: Open and Read
The example below shows two very simplified API functions to open and read a file.

     The OPEN function is called to read the file "budget.txt," and the function returns a value in the variable HANDLE. If the file was opened successfully, HANDLE might contain a positive number, but if not, a negative one. The value in HANDLE is then passed to the READ function to read so many bytes (LENGTH) of the file into a memory area called INPUTBUFFER. The OPEN function returns the number of bytes read in the SIZE variable.

handle = open("budget.txt");
size = read(handle, InputBuffer, length);





Search For function On ChannelWeb

Find the latest news and information on function from across the Channelweb Network of IT Web sites.


techweb
temrs similiar to your header
Entries before function
techweb
techweb fully immersive 3D environment
techweb fully immersive virtual world
techweb fully populated
techweb fully qualified
techweb fully qualified domain name
techweb Entries after function
techweb
techweb function call
techweb function key
techweb function keys
techweb function library
techweb function overloading
techweb
define another it term
techweb techweb

techweb
Or get a random definition
techweb
copyright THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.

Copyright (©) 1981-2008 The Computer Language Company
Inc All rights reserved.
Media Kits | Reprints | Privacy Statement | Copyright © 2010 United Business Media LLC | Terms of Service
CRN Logo ChannelWeb Logo CRN Logo CRNTech Logo Vision Events XChange IPED
ADVERTISEMENT




CHANNEL SERVICES >>