• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About Technipages

Argument

By Mel Hawthorne

An argument is a programming term for a statement that calls on and activates a certain routine, value or option from a selection of pre-defined ones. These predefined items are, of course, set by the developer before they are called. This routine value or option is then used when data is processed.

 

 

Technipages Explains Argument

Values can be whatever they are set to, and routines can be created and defined in advance, in order to perform necessary functions as they are needed by the main program. Separating functions and certain routines out in arguments means that the overall code block is less repetitive and shorter, making it easier to work with and review later.

An example: A routine that is supposed to round numbers to their second decimal place is used with something called a parameter – that parameter is the number that is being rounded, and it will (or at least can) be different every time that argument is called, and the routine is performed. This means that any number that is given as the parameter is then rounded accordingly.

A less common usage of the term argument refers to command-line interfaces like spreadsheets, and similar applications that rely on typed commands following a certain structure or syntax. These typed commands are the arguments in question, and they determine how the command is ultimately carried out.

Common Uses of Argument

  • An argument in a spreadsheet program could be a query, for example.
  • In programming, the usage of arguments helps keep things simple when it comes to the main block of code.
  • Arguments are useful for separating out repeated sections of code that would be copied and pasted if it weren’t for the argument.

Common Misuses of Argument

  • Arguments are the variables that differ each time a routine is called.

Primary Sidebar

Recent Posts

  • What Is a Chipset?
  • What Are the System Panel Cables?
  • Google Docs: How to Add, Hide, or Remove Comments
  • Zoom: How to Use Any Image in Your Waiting Room
  • What Is Work Stealing?
  • What Is the BIOS?
  • What Is an Internal Speaker?
  • Google Keep: How to Share Your Notes with Someone

Who’s Behind Technipages?

Baby and Daddy 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.

© Copyright 2022 Technipages · All Rights Reserved · Privacy