Teacher Name:Mr. Rung Date of Lesson: January
Course Name: C++ Lesson Name: Chap 10.1a
Student Name
Password
Objective To complete the workbook problems.
Primary Focus Answer the questions in the spaces provided below.
Site Links Course Home Page
Additional Resources
Site Links
Question #1
A pointer is a variable or constant that holds a memory address.
True False
Question #2
The dereferencing operator (*) tells the compiler to return the value in the variable being pointed to.
Question #3
By dereferencing a variable, you can change the value of a variable being pointed to.
Question #4
A pointer can be named using any legal variable name.
Question #5
Pointer sizes are always the same in different operating systems.
Section 2 Question #1
Write your answer in the space following questions 6 through 10. Write a statement that declares a pointer to a variable of type char.
Section 2 Question #2
Write a statement that will assign the variable Temp the value pointed to by the pointer Int-Ptr.
Section 2 Question #3
Write a statement that will make the pointer Char-Ptr point to the variable Initial
Section 2 Question #4
Write a statement that will make the value pointed to by the pointer Int-Ptr be 5.
Section 2 Question #5
Write a statement that will assign the variable Age the value pointed to by Age-Ptr.