What will be the output of printf("%d", sizeof('A'));?

C Programming Quiz

Quiz
•
Engineering
•
University
•
Hard
Gunasree Sidda
Used 1+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1
2
4
8
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to prevent modification of a variable?
static
const
volatile
register
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code int a = 5; printf("%d", a++ + ++a);?
11
12
10
Undefined behavior
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator has the highest precedence in C?
*
++
()
[]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to dynamically allocate memory in C?
alloc()
calloc()
malloc()
Both B and C
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output? int a = 10; int b = a++ + ++a; printf("%d", b);
21
22
23
24
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a storage class in C?
auto
extern
volatile
static
Create a free account and access millions of resources
Similar Resources on Quizizz
52 questions
Microcontroller 8051

Quiz
•
University
50 questions
Final Examination in MATH 153 - Part 2 (Elements)

Quiz
•
University
50 questions
Java Programming Basics Assessment

Quiz
•
University
50 questions
Python and C Programming Quiz

Quiz
•
University
50 questions
FE1prf192

Quiz
•
University
50 questions
Mikroişlemciler-CPU

Quiz
•
University
50 questions
Introduction to Python Quiz

Quiz
•
University
50 questions
BSEC

Quiz
•
1st Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade