Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

Function

In programming languages, a separate named unit of code that performs a specific calculation or procedure. To use functions, they must be declared in a special area of the program set aside for this purpose.

A function includes placeholders, called logical parameters, that will be replaced by real values (actual parameters) when the function is initiated through a call placed elsewhere in the program.

For example, the following pseudocode adds two numbers and displays the result: add(x, y) {sum = x + y; print sum;} The variables within the parentheses (x, y) are the logical parameters that will be replaced with actual parameters. Elsewhere in the program, a statement such as the following calls and supplies the actual parameters: add(5,10) See actual parameter, call, parameter, parameter passing convention.

Author Jennifer Spencer

You Might Also Like

No related photos.

  • windows 11 usb tethering

    Your Guide to USB Tethering on Windows 11

  • find the serial number of a laptop

    6 Ways to Find the Serial Number for Your Laptop

  • battery issues after windows 11 update

    Battery Issues After Windows 11 Update? Here’s the Fix

  • why is ram so expensive

    Why Is RAM Suddenly So Expensive?

  • how to fix error code 0x800f0922 windows 11

    How to Fix Error Code 0x800f0922 in Windows 11

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2026 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2026 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.