Functions_Cards

Description

Cards on the theory behind C++ functions.
Tumelo Malebane
Flashcards by Tumelo Malebane, updated more than 1 year ago
Tumelo Malebane
Created by Tumelo Malebane over 1 year ago
2
0

Resource summary

Question Answer
What is a function? A Block of code that performs a specific task.
What does it mean to define a function in C++? Defining a function in C++ involves specifying its name, return type (if any), parameter list (if any), and the code that should execute when the function is called
What are function paramters? The provide a way for storing values that will be used by the function.
There are two types of parameters and they are? Value and reference parameters
A function receives a copy of a value when a_______parameter is used. value
A function receives an address of a variable when a________parameter is used. reference
A function is called by its? name
A function header consists of how many elements? three
The return type of a function that will not be returning anything. void
1_____ functionName(_______){ } What sits at position 1? return type
_____ functionName(2_______){ } What sits at position 2? paramters/parameterlist
Function parameters are compulsory? (True/False) False, a function can exist without having any parameters.
Show full summary Hide full summary

Similar

Resumo para o exame nacional - Felizmente Há Luar!
miminoma
Characters in Lord of the Flies
lowri_luxton
An Inspector Calls: Characters
bexjrutherford
Physics P2
Phoebe Drew
AS Chemistry - Enthalpy Changes
Sarah H-V
Biology Unit 4: Respiration and Photosynthesis
Charlotte Lloyd
GCSE Computing: Hardware
Yasmin F
“The knower’s perspective is essential in the pursuit of knowledge.” To what extent do you agree with this statement?
Lucia Rocha Mejia
Factores Humanos en la Aviación
Adriana Forero
Specifc Topic 7.4 Timber (Impacts)
T Andrews