Question: Chapter 9 1. Look at the following code: int x=7; int *iptr=&x; What will be displayed if you send the expression *iptr to cout (2

Chapter 9

1. Look at the following code:

int x=7;

int *iptr=&x;

What will be displayed if you send the expression *iptr to cout (2 points)? What happens if you send the expression iptr to cout (2 points)?

2) What is the difference between a pointer to a constant and a constant pointer? (2 points)

Chapter 10

1) Assume input is a char array holding a C-string. Write code that counts the number of elements in the array that contain an alphabetic character. (4 points)

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!