Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Quiz Questions ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2. The operator ________ is used to create a dynamic array. ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 4. When used as a _____________, * is called

C++ Quiz Questions

------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. The operator ________ is used to create a dynamic array.

------------------------------------------------------------------------------------------------------------------------------------------------------------------

4. When used as a _____________, * is called the dereferencing operator.

------------------------------------------------------------------------------------------------------------------------------------------------------------------

10. If p is a dynamic array, then the statement ?delete [ ] p does what?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

14. A pointer variable is declared using an asterik, *, between the data type and the variable. ? For example, ___ declares p to be a pointer variable of type int.?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

15. In question 14, what does p point to?

------------------------------------------------------------------------------------------------------------------------------------------------------------------

16.

int *p;

int num;

Using the above statements, write a line of code that sets the value of p equal to the address of num.

------------------------------------------------------------------------------------------------------------------------------------------------------------------

18.

If p is a pointer variable of type int, the statement:

*p = 25;?

does what?

------------------------------------------------------------------------------------------------------------------------------------------------------------------

22. What does the following statement accomplish:

p = new int[10]?

------------------------------------------------------------------------------------------------------------------------------------------------------------------

25.

Consider the following statement:

int* p, q;

This statement could lead to what type of misinterpretation?

------------------------------------------------------------------------------------------------------------------------------------------------------------------

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

: #:..: : iFF:::::: .

Answered: 1 week ago