Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

C++ Functions

RSS
Modified on Wed, Jan 28, 2009, 7:17 PM by Administrator Categorized as C and C-plus-plus
Item Syntax Notes
Function Header RtnType FunctionName (paramlist) {statements}
  • The RtnType can be void
  • The paramlist is optional
  • No semicolon on the end
  • Returning Values RETURN expression;  
    Function Prototype RtnType FunctionName (paramlist);
  • Necessary when a function is used before it's defined. All datatypes must match the function header
  • Same as a function header, PLUS a semi-colon
  • Parameter names are optional, and can be different than in the function header.
  • ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.