Test 1 Flashcards
Size of char in bytes
One
Size of short in bytes
Two
Size of float in bytes
Four
Size of long in bytes
Four
Size of double in bytes
Eight
&
Address operator: accesses the variables memory location
Which byte of a variable contains the memory address?
The first one
By default, memory addresses print in what number type?
Hexadecimal
How to print an address in decimal
cout
A value that represents or holds the value of a memory location is
A pointer
Indirection operator
*
Declaration of a pointer
int ptr OR int ptr
To access the value of a variable using a pointer
ptr (ptr = 100; or cout
“*” can be used for
Multiplication, declaration of a pointer, and as the indirection operator (they’re not the same!!!)
Pointer notation
*(arrayName+1)