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 21
True/False
When an array is passed to a function, the array address is the only item actually passed.
Question 22
True/False
If nums is a two-dimensional integer array, *(*(nums + 2) + 1) refers to element nums[1][2].
Question 23
True/False
The following code is valid in C: char *message; strcpy(message,"abcdef");
Question 24
True/False
Instead of initially creating a string as an array it is possible to create a string using a pointer.
Question 25
True/False
The declaration char *seasons[4]; creates an array of four elements, where each element is a pointer to a character.
Question 26
Multiple Choice
&grade[3] is equivalent to ____; assume that grade is an array of integers, and each integer requires 4 bytes of storage..
Question 27
Multiple Choice
The address operator in C is ____.
Question 28
Multiple Choice
The indirection operator in C is ____.
Question 29
Multiple Choice
If we store the address of grade[0] in a pointer named gPtr (using the assignment statement gPtr = &grade[0];) , then, the expression ____ references grade[0].
Question 30
Multiple Choice
The ____ in the expression *(gPtr + 1) is an offset.
Question 31
Multiple Choice
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.