C Intermediate
This test evaluates your intermediate knowledge of C Programming, focusing on pointers, dynamic memory allocation, structures, and file handling. To improve your understanding, study C Tutorials on TutorialsPoint, practice with Programiz C Programming Exercises, and explore this practical Intermediate C Programming Tutorial on YouTube.
1
Which of these functions is used to dynamically allocate memory?
2
What is the purpose of the 'extern' keyword?
3
Which operator is used to access members of a structure through a pointer?
4
Which header file contains the definition of the malloc() function?
5
What does the 'static' keyword mean for a variable declared inside a function?
6
What will sizeof(char) return?
7
What is the difference between calloc() and malloc()?
8
What is the value of 'x' after executing this code: int x = 5; x <<= 1;
9
Which of these is a correct way to declare a pointer to an integer?
10
What does the 'volatile' keyword indicate?
11
Which function is used to release memory allocated by malloc()?
12
What is the correct way to include a user-defined header file?
13
Which preprocessor directive is used to prevent multiple inclusions of a header file?
14
Which keyword is used to create an alias name for a data type?
15
What is the result of 5 % 2 in C?