Week 2 Flashcards
In programming // means
Indicates the rest of the line is a comment
#
Preprocessor
int main ()
Declaration of a function
{ }
Indicate beginning and end
std::cout
Standard character output
«
Insertion operator
;
Marks the ends
All the elements in the standard c++ are declared within is called
Namespace
Is a sequence of one or more letters, digits or underscore characters
Valid identifier
Data types in c++ is divided into 3 parts
Primitive
Derived
User
These data types are built-in or predefined data types and can be used directly by the user to declare variables
Primitive data type
Data types derived from primitive
Data derived type
Data type defined by user itself
Abstract or user defined data type
It can store either true or false
Boolean
Type of data that can be stored
Data type
Name given to the variable
Variable_name
Initial value stored in the variable
Value
Refers to the part where a variable is first declared or introduced before its first use
Variable declaration
Is a part where the variable is assigned a memory location and a value
Variable definition
A variable defined within a block or method or constructor
Local variable
Variables that are non static and are declared in a class outside any method, constructor or block
Instance variable
It is also known class variable
Static variable