Exam 11: Arrays, Addresses, and Pointers

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The ____ in the expression *(gPtr + 1) is an offset.

(Multiple Choice)
4.7/5
(28)

The expression *(gPtr + 3) changes the address stored in gPtr.

(True/False)
4.9/5
(36)

By adding numbers to and subtracting numbers from pointers, we can obtain different addresses.

(True/False)
4.8/5
(43)

If gPtr is a pointer that points to the first element of an integer array (and each integer requires four bytes of storage), ____ references the variable that is three integers beyond the variable pointed to by gPtr.

(Multiple Choice)
4.7/5
(40)

Adding ____ to a pointer causes the pointer to point to the next element of the original data type being pointed to.

(Multiple Choice)
4.8/5
(30)

The indirection operator in C is ____.

(Multiple Choice)
4.8/5
(42)

&grade[3] is equivalent to ____; assume that grade is an array of integers, and each integer requires 4 bytes of storage..

(Multiple Choice)
4.7/5
(40)

In every respect, an array name and a pointer can be used interchangeably.

(True/False)
4.8/5
(40)

When an array is created, the compiler automatically creates an internal ____ for it and stores the base address of the array in it.

(Multiple Choice)
4.9/5
(34)
Showing 41 - 49 of 49
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)