Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
A First Book of ANSI C
Quiz 11: Arrays, Addresses, and Pointers
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
Of the following expressions, ____ is the most commonly used. This is because such an expression allows each element in an array to be accessed as the address is "marched along" from the starting address of the array to the address of the last array element.
Question 42
Multiple Choice
int *ptNum = &miles; is ____.
Question 43
Multiple Choice
Consider the following declarations of a function that receives an array of integers and finds the element with the maximum value: (i) findMax(int *vals, int numEls) (ii) findMax(int vals[], int numEls) The address in vals may be modified ____.
Question 44
Multiple Choice
If nums is a two-dimensional integer array, ____ refers to element nums[0][0].
Question 45
Multiple Choice
If nums is a two-dimensional integer array, ____ refers to element nums[1][0].
Question 46
Multiple Choice
A suitable equivalent to the function header calc(int pt[2][3]) is ____.
Question 47
Multiple Choice
The header line ____ declares calc to be a pointer to a function that returns an integer.
Question 48
Multiple Choice
You can replace lines 5 and 6 in the following function with ____. 1 /* copy string2 to string1 */ 2 void strcopy(char string1[], char string2[]) 3 { 4 int i = 0; 5 while (string1[i] = string2[i]) 6 i++; 7 }