Whether C code will compile without main() function?
C Programming - Medium

Quiz
•
Professional Development
•
10th Grade - University
•
Easy
Szymon Tokarski
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Yes
No
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Format specifier for size_t is:
%s
%p
%zu
%ld
%i
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is output of this code:
#include <stdio.h>
int main(){
int y = 3;
printf("%d %d %d",y,y,y++,++y);
}
3 3 3
5 5 4
3 3 4
4 4 5
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is output of this code:
#include <stdio.h>
#define ARR_SIZE 10
int main(){
int arr[ARR_SIZE] = {-1};
int *ptr1 = &(arr[0]), *ptr2 = &(arr[4]);
printf("%p",ptr2-ptr1);}
4
Compile Error
0x4
0x16
16
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select existing signals
SIGILL
SIGTERM
SIGRET
SIGEXT
SIGFPE
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
In which libraries NULL macro is defined?
stdlib.h
stdio.h
assert.h
stddef.h
stdbool.h
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which macro may return 31?
int x = 2, y= 3, z;
z= RAT(x++,++y);
#define RAT (A,B) ( ((A) * (A)) + ((B) * (B)) )
#define RAT (A,B) ( ((A) * (2)) + ((B) * (2)) )
#define RAT(A,B) ( ((A) * (A)) + ((B) * (B)) )
#define RAT(A,B) ( ((A) * (2)) + ((B) * (2)) )
#define RAT(A,B) ( ((A) * (B)) + ((B) * (B)) )
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Arreglos

Quiz
•
7th Grade - Professio...
5 questions
Python - Numpy Quiz 1

Quiz
•
University - Professi...
10 questions
Multithreading

Quiz
•
University
6 questions
C programming

Quiz
•
University
12 questions
python/part1

Quiz
•
10th Grade
15 questions
C# программирование

Quiz
•
11th Grade
12 questions
Veri tabanı yönetim sistemleri

Quiz
•
University
11 questions
UC_TM04_Strings_Pointers

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