Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ a. Which arithmetic operations can be performed on pointers? 1. Multiplication, division, addition, and subtraction 2. All arithmetic operations that are legal in C++

c++

a. Which arithmetic operations can be performed on pointers?

1.

Multiplication, division, addition, and subtraction

2.

All arithmetic operations that are legal in C++

3.

Only multiplication and addition

4

Addition , subtraction , preincrement, and postincrement

5.

None of the above

b. A function may return a pointer, but the programmer must ensure that the pointer ________.

1.

has not previously been returned by another function

2.

has been assigned an address

3.

is pointing to an object that is still valid after the return of the function

4.

was received as a parameter by the function

5.

None of the above

c. A pointer may be initialized with ________.

1. the value of a floating-point variable

2. the address of an existing object of the appropriate type

3. the value of a floating-point constant

4. All of the above

5. None of the above

d. The statement double *num; ________.

1. initializes a variable called *num

2.defines a variable of type double called num

3.defines a pointer variable called num

4.defines and initializes a pointer variable called num

5.None of the above

e. The term pointer can be used interchangeably with ________.

1. variable

2. address

3. counter pointer

4. decimal pointer

5. None of the above

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_2

Step: 3

blur-text-image_3

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

Oracle Database Upgrade Migration And Transformation Tips And Techniques

Authors: Edward Whalen ,Jim Czuprynski

1st Edition

0071846050, 978-0071846059

More Books

Students also viewed these Databases questions