C Language Quiz (Set 4) C Language (Set 4) 1 / 10 Which C library function is used to perform memory allocation and deallocation operations? memoryalloc malloc memalloc memmanip 2 / 10 What is the result of the expression 'sizeof(int)' in C? 4 2 8 Depends on the system architecture. 3 / 10 What is the purpose of the 'extern' keyword in C? To declare a variable as global. To define a new data type. To indicate the end of a loop. To declare a variable that is defined in another file. 4 / 10 Which C function is used to close an open file? fclose closefile endfile terminatefile 5 / 10 What is the purpose of the 'goto' statement in C? To jump to a specific location in the code. To end a loop. To define a new function. To print output. 6 / 10 Which operator is used to declare a pointer in C? & * # $ 7 / 10 What is the purpose of the 'volatile' keyword in C? To define a variable that cannot be modified. To create a pointer to a variable. To indicate that a variable can be changed unexpectedly. To include a header file. 8 / 10 Which C library function is used to find the smallest integer greater than or equal to a given value? floor round ceil truncate 9 / 10 What is the purpose of the 'auto' keyword in C? To declare an automatic variable. To define a variable with automatic memory allocation. To include a header file. To declare a variable as global. 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}``` 5 6 4 undefined Your score isThe average score is 0% 0% Restart quiz