C Language Quiz (Set 7)

C Language (Set 7)

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 a long integer?

3 / 10

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

4 / 10

Which C library function is used to copy a memory block to another location?

5 / 10

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

6 / 10

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

7 / 10

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

8 / 10

Which C library function is used to search for a substring in a string?

9 / 10

What is the result of the expression '10 / 3' in C?

10 / 10

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

Your score is

The average score is 0%

0%