Which of the following statements about pointers is correct?
C Programming Quiz

Quiz
•
Professional Development
•
University
•
Hard
Suresh Kumar
Used 7+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A pointer stores the value of a variable.
A pointer stores the memory address of a variable.
A pointer stores the size of a variable.
A pointer is used to add two values.
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is true about sizeof() operator?
It can be used on any data type.
It returns the size in bits.
It can only be used on variables.
It returns the size in bytes.
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will printf("%d", 5 + 3); output?
53
8
35
5 + 3
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the format specifier for printing an integer in C?
%c
%s
%d
%f
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is used to clear memory allocated by malloc()?
clear()
free()
delete()
reset()
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output of the following code? int a = 5, b = 3; printf("%d", a % b);
1
2
3
5
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which function is used to dynamically allocate memory in C?
malloc()
free()
sizeof()
realloc()
Create a free account and access millions of resources
Similar Resources on Quizizz
50 questions
Final

Quiz
•
University
50 questions
Streams Java

Quiz
•
University
50 questions
ISPFL7 - BSIS4A - Quiz 2

Quiz
•
University
50 questions
Computer Basics Quiz

Quiz
•
9th Grade - University
45 questions
UD3_Repaso

Quiz
•
University
55 questions
Microsoft Azure Fundamentals AZ-900 ENG #1

Quiz
•
University - Professi...
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade