C Language Quiz (Set 20)

C Language (Set 10)

1 / 10

What is the purpose of the 'offsetof' macro in C?

2 / 10

Which C library function is used to convert a string to an integer in a specific base?

3 / 10

What is the purpose of the 'puts' function in C?

4 / 10

Which C library function is used to read a line from a file?

5 / 10

What is the purpose of the 'switch' statement in C?

6 / 10

In C, what is the purpose of the 'time_t' data type?

7 / 10

What is the purpose of the 'volatile' keyword when used in a parameter declaration in C?

8 / 10

Which C library function is used to allocate memory for an array of elements?

9 / 10

What is the result of the expression '5 + 3 * 2' in C?

10 / 10

What is the purpose of the 'restrict' keyword in a function definition in C?

Your score is

The average score is 0%

0%