Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions