Some pointer arithmetic is allowed. Which of the following arithmetic operators is allowed?

a) pointer + integer
b) pointer - pointer
c) pointer - integer
d) integer + pointer
e) integer * pointer


a) pointer + integer , b) pointer - pointer , c) pointer - integer , and d) integer + pointer

In a) and d), a number, equal to the product of the integer and the size of the object pointed to, is added to the pointer. In c), things are similar to a) and d) except that the number is subtracted from the pointer. e) Neither multiplication of pointers or of pointers by integers is allowed. In c), the two pointers must point into the same data structure.

Computer Science & Information Technology

You might also like to view...

MC The______ property executes when an attribute is accessed.

a) get. b) set. c) delete. d) None of the above.

Computer Science & Information Technology

The numbers along the left side of a slide refer to the ________ on the slide

Fill in the blank(s) with correct word

Computer Science & Information Technology

When does a company need to identify mission-critical business functions and quantify the impact a loss of such functions may have on the organization in terms of its operational and financial position, what should be performed?

A. business risk analysis B. business alert assessment C. business productivity analysis D. business impact analysis

Computer Science & Information Technology

What are the steps for creating a  pairwise master key (PMK)?

What will be an ideal response?

Computer Science & Information Technology