Exam 8: Pointers and Pointer-Based Strings

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

A function that prints a string by using pointer arithmetic such as ++ptr to output each character should have a parameter that is:

(Multiple Choice)
4.8/5
(29)

Three of the following expressions have the same value. Which of the following expressions has a value different from the others'?

(Multiple Choice)
4.8/5
(24)

Which statement would be used to declare a 10-element integer array c?

(Multiple Choice)
4.8/5
(41)

Pointers cannot be used to:

(Multiple Choice)
4.9/5
(34)

To prevent modification of a built-in array's values when you pass the built-in array to a function:

(Multiple Choice)
4.9/5
(20)

A string array is commonly used for:

(Multiple Choice)
4.9/5
(40)

Which of the following is not a valid way to pass arguments to a function in C++?

(Multiple Choice)
4.8/5
(39)

Which of the following is not true of pointers to functions?

(Multiple Choice)
4.8/5
(28)

When a compiler encounters a function parameter for a single-subscripted array of the form int a[], it converts the parameter to:

(Multiple Choice)
4.9/5
(38)

What method should be used to pass an array to a function that does not modify the array and only looks at it using array subscript notation:

(Multiple Choice)
4.8/5
(35)

What does the following statement declare? int *countPtr, count;

(Multiple Choice)
4.7/5
(29)

Sizeof:

(Multiple Choice)
4.8/5
(32)
Showing 21 - 32 of 32
close modal

Filters

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