C Language Quiz (Set 14)

C Language (Set 4)

1 / 10

Which C library function is used to perform memory allocation and deallocation operations?

2 / 10

What is the result of the expression 'sizeof(int)' in C?

3 / 10

What is the purpose of the 'extern' keyword in C?

4 / 10

Which C function is used to close an open file?

5 / 10

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

6 / 10

Which operator is used to declare a pointer in C?

7 / 10

What is the purpose of the 'volatile' keyword in C?

8 / 10

Which C library function is used to find the smallest integer greater than or equal to a given value?

9 / 10

What is the purpose of the 'auto' keyword in C?

10 / 10

What is the output of the following C code?

\n\n```c\n#include <stdio.h>\nint main() {\n int x = 5;\n printf(\"%d\", ++x);\n return 0;\n}```

Your score is

The average score is 0%

0%