stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Pointers in C Programming Language Flashcards | StudBud
Explore
/
Pointers in C Programming Language
Pointers in C Programming Language
9 terms
·
StudBud Administration
·
440 plays
Data Structure - Pointers
Flashcards
9 cards
F
Practice quiz
P
Host live
L
Questions
9
Answers
1
Which header file should be included to use functions like malloc() and calloc()?
stdlib.h
memory.h
string.h
stdio.h
2
The ________, also known as the
address operator
, returns the memory address of a variable.
percent sign (%)
exclamation point ( ! )
ampersand ( & )
asterisk ( * )
3
In which case would you consider using a dynamic array?
If the array size is big, but known at compile time
size of the array is decided by the user at runtime
array size is known before running the program
4
________ can be used as pointers.
Array names
All of these
Numeric constants
Punctuation marks
5
When you work with a
dereferenced pointer
, you are actually working with ________.
a copy of the value pointed to by the pointer variable
a variable whose memory has been allocated
the actual value of the "pointed" variable
6
The contents of pointer variables may be changed with mathematical statements that perform ___.
all mathematical operations that are legal in C
multiplication and division
addition and subtraction
B and C
7
Which is the correct way to deallocate a dynamic array? (Assume p is a pointer)
delete *p
delete p
free(*p)
free(p)
8
With pointer variables, you can ________ manipulate data stored in other variables.
never
indirectly
seldom
None of these
9
What does the following statement do?
float *num2;
Declares a pointer variable named num2.
Declares a float variable named num2.
Initializes a variable named *num2.