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
DevOps Stage-2 Quiz

Quiz
•
University
49 questions
LMIS CHAP 1

Quiz
•
University
50 questions
Management Foundation Test

Quiz
•
University
50 questions
Building Laws Preboard 2 of 2

Quiz
•
KG - Professional Dev...
48 questions
u6 p1 g11

Quiz
•
8th Grade - University
47 questions
LPC1768 Timers, PWM, RTC and WDT Peripherals

Quiz
•
University
48 questions
Data Structures

Quiz
•
University
46 questions
Câu hỏi về Microsoft Excel

Quiz
•
University
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