1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Describe the format for declaring pointers
variableType *pointerName;
variableType *pointerName, nonPointer;
Describe the initializing of a pointer variable

Describe what happens when & and * are used on a pointer
The value of the pointer is used
Regardless of the order of * and &

Describe the template for writing a function header that takes a pointer as a parameter
outputType functionName(variableType *pointerName);
Use pass-by-reference to cube a number

Describe the declaration of Non-constant pointer to Non-constant data

Describe the declaration of Non-constant pointer to constant data

Describe the declaration of a constant pointer to non-constant data

Describe the declaration of a constant pointer to constant data

Write code to bubble sort an array using pass-by-reference

Describe the template of using sizeof
sizeof( variable/structure type)
returns number of bytes
only works on arrays inside the scope where the array is defined
therefore arrays passe to a function will not work with sizeof
Describe the operations that can be done on pointers

Describe the addition of integers to a pointer

Describe the subtraction of pointers by integers

Describe the incrementation and decrementation of pointers

Describe the subtraction of pointers from one another

Describe assigning pointers to one another

Describe the implementation of an array of strings using a template
