1/9
Vocabulary and key concepts covering C++ arrays, memory calculation, and string handling functions based on the Chapter 2 lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Array
A collection of elements of the same type placed in contiguous memory locations, used to store a set of values under a single variable name.
Index Number
The position of an element in an array list (also referred to as a subscript) used to access that specific element.
Array Declaration Syntax
The statement syntax used to declare an array in C++: data_type array_name[size];
Array Memory Size Formula
The formula used to calculate total memory allocated for a single dimensional array: total_bytes=sizeof(array_type)×size_of_array
Array Initialisation
Assigning initial values to array elements directly within their declaration statement (for example, int score[5] = {98, 87, 92, 79, 85};).
Null Character ('\0')
A character stored in a character array that serves as a string terminator.
cin >> (for String Input)
An input statement in C++ that reads characters until it encounters a white space, allowing only single-word strings to be stored.
Stream Input Functions for Strings
Functions such as getline() and get() that belong to stream classes and are used to input strings containing white spaces.
gets()
A console function used to input strings containing white spaces.
puts() and write()
Functions used to display string data in C++.