What is a pointer in C?

Module4LECMT7

Quiz
•
Science
•
University
•
Medium
Armilyn Martinez
Used 3+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function that points to memory.
A variable that stores an address of another variable.
A constant memory location.
A variable that can only store integers.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to retrieve the address of a variable?
*
&
->
.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the * operator do when used with a pointer?
Declares a pointer variable.
Initializes a pointer.
Dereferences the pointer to access the value stored at the address.
Retrieves the size of a pointer.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid pointer declaration?
int *ptr;
int ptr*;
int &ptr;
*int ptr;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value does a NULL pointer contain?
-1
1
0
An undefined value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a void pointer on a 32-bit system?
2 bytes
4 bytes
8 bytes
It depends on the data type it points to.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a pointer is not initialized?
It points to the value 0.
It causes a segmentation fault.
It holds a garbage address.
The program will not compile.
Create a free account and access millions of resources
Similar Resources on Quizizz
40 questions
konkurs ortograficzny

Quiz
•
8th Grade - Professio...
45 questions
ICM 805

Quiz
•
University
37 questions
Latihan Bayangan Soal PSA TIK Kls VI 2024

Quiz
•
4th Grade - University
35 questions
end of year Quiz

Quiz
•
12th Grade - University
35 questions
Chemistry Final Test

Quiz
•
8th Grade - University
43 questions
BCHS 3304 Exam 2

Quiz
•
12th Grade - University
39 questions
Ecuación de Difusión - Almacenamiento y Daño

Quiz
•
University - Professi...
40 questions
Chemical and Physical Changes Quiz

Quiz
•
8th Grade - University
Popular Resources on Quizizz
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade