Which of the following is a valid declaration in C?

C Programming Quiz

Quiz
•
Other
•
University
•
Hard
InfiTechLearn Team
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int 2num;
float rate = 5.5.5;
char letter = 'A';
int long = 10;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which format specifier is used for printing unsigned int in C?
%d
%c
%f
%u
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will sizeof('A') return in C?
2
1
4
8
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is guaranteed to execute at least once?
for loop
do-while loop
while loop
goto
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of printf("%d", 5 + 'A');?
5
ASCII of 'A'
ASCII of 'A' + 5
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct way to declare a pointer to an integer?
int ptr;
int *ptr;
ptr int;
int &ptr;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the value at the address pointed by a pointer?
&
->
*
@
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
UNIT - 3 B Intermediate Code Generation Quiz

Quiz
•
University
25 questions
UNIT - 4 B Compiler Optimization Quiz

Quiz
•
University
30 questions
Ôn Thi FINAL EXAM môn PRF192

Quiz
•
University
30 questions
Code Carrer 1st Year

Quiz
•
University
25 questions
C Programming

Quiz
•
12th Grade - University
25 questions
round 2

Quiz
•
University
25 questions
Introduction to Python and Data Analytics Basics

Quiz
•
University
35 questions
TECHTRIX2025 BUGHUNT FINALS

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