GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Functions_Cards

Tumelo Malebane PG2116D TUT Englisch 12 Karten

Karten in diesem Stapel (12)

  1. 1What is a function?A Block of code that performs a specific task.
  2. 2What 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
  3. 3What are function paramters?The provide a way for storing values that will be used by the function.
  4. 4There are two types of parameters and they are?Value and reference parameters
  5. 5A function receives a copy of a value when a_______parameter is used.value
  6. 6A function receives an address of a variable when a________parameter is used.reference
  7. 7A function is called by its?name
  8. 8A function header consists of how many elements?three
  9. 9The return type of a function that will not be returning anything.void
  10. 101_____ functionName(_______){ } What sits at position 1?return type
  11. 11_____ functionName(2_______){ } What sits at position 2?paramters/parameterlist
  12. 12Function parameters are compulsory? (True/False)False, a function can exist without having any parameters.

Informationen

Beschreibung
Cards on the theory behind C++ functions.
Erstellt von
Tumelo Malebane
Aufrufe
7
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck