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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started