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.

  • fix error 0x9cfc7550

    How to Fix Error 0x9cfc7550 (We Couldn’t Create a New Partition) in Windows 

  • fix error code 0x3000008 1

    How to Fix Error Code 0x3000008 for Remote Desktop Connection

  • fix error code 0x80190001 1

    How to Quickly Fix Error 0x80190001 for Microsoft or Outlook Account Login 

  • fix filecoauth.exe application error

    Fix FileCoAuth.exe Application Error 

  • fix error code 0x80010002 in windows update

    How to Fix 0x80010002 Error in Windows Update 

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.

© 2025 Guiding Tech Media All Rights Reserved

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

© 2025 Guiding Tech Media All Rights Reserved

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