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
50 questions
02. [10-16-2024] Quiz in ME 433 - Part 2

Quiz
•
University
50 questions
PSP Diagnostic Quiz

Quiz
•
University
47 questions
Magnetic Circuits Quiz

Quiz
•
University
45 questions
MES Unit 4

Quiz
•
University
52 questions
Computer Networks Quiz

Quiz
•
University
47 questions
13.2.1 - Civil Engineering Principles

Quiz
•
10th Grade - University
50 questions
Introduction to Python Quiz

Quiz
•
University
50 questions
[Part 2] Midterm Exam in MATH 153 - 51-100

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