Tutorial 8
1. Write syntax for declaring a pointer.
2. Declare a pointer of type int.
3. Declare a pointer of type string.
4. Declare a pointer of type int that point to Variable num.
5. Declare a pointer of type string that point to Variable name.
6. Declare a pointer of type string that point to an array of four element.
7. Declare a pointer of type string that point to an array of four element and
initialize the element in the array using a pointer.
8. Print the element in Q7 using a pointer.
9. Declare a pointer of type string that point to an array and initialize the
element using cin and pointer.
[Link] a pointer of type int that point to an Array and use subscript on a
pointer to initialize the element and use the constant pointer to print the
element in the array.
[Link] syntax to declare array of pointers.
[Link] array of pointers of type int having 10 elements.
[Link] the pointer in Q12.
[Link] the pointer content in Q13.
15. Using the Concept Array of Pointers in C++ write the
following:
a. Declare Array of pointers that has four element of type int, array
name must be numbers.
b. Initialize numbers to a new string.
c. Using dereferencing on numbers, Initialize the content where
numbers is pointing to.
d. Print the content using numbers.
16.