Question: c++ 1-In the declaration statement int *i; what type of variable is i? (1 pt) 2-If a variable is declared as a pointer, what must

c++

1-In the declaration statement

int *i;

what type of variable is i? (1 pt)

2-If a variable is declared as a pointer, what must be stored in the variable? (1 pt)

3-If average is a variable, what does &averagemean? (2 pts)

4-Using the indirection operator, write an expression for the variable pointed to by pDate: (2 pts)

5-Write a declaration statement for pCharwhich is a pointer to a character. (2 pts)

6-Write an English sentence that describes what is contained in the following: (2 pts)

double *dPtr;

7-Rewrite the following subscripted variable using pointer notation: (2 pts)

dist[9]

8-Rewrite the following pointer notation as a subscripted variable: (2 pts)

*(yrs + 10)

9-Describe what happens to the pointer in the following expressions: (4 pts)

*ptNum++

*++PtNum

10-Rewrite the following declaration statement using pointer notation and the newoperator. (2 pts)

int array[10];

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!