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

C Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Bandaru Chharitha
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
7517 03 Section Assessment

Quiz
•
12th Grade
50 questions
SAS Informatika Ganjil Kelas 9

Quiz
•
9th Grade - University
47 questions
L6 Mich Revision

Quiz
•
12th Grade
53 questions
Quiz Struktur Data STACK dan QUEUE

Quiz
•
12th Grade
46 questions
Quiz Struktur Data dan Informatika

Quiz
•
9th - 12th Grade
45 questions
GCSE Python Legends

Quiz
•
1st - 12th Grade
50 questions
SOAL TIK KLS 12.1 PTS2 24-25

Quiz
•
12th Grade
50 questions
ASAJ Semester 1 Informatika

Quiz
•
10th 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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University