C Advanced
This test evaluates your advanced knowledge of C Programming, focusing on advanced pointers, memory management, preprocessor directives, and optimization techniques. To master advanced C concepts, check out Advanced C Tutorials on CProgramming.com, learn from GeeksforGeeks Advanced C Articles, and dive into this in-depth Advanced C Programming Course on YouTube.
1
What is a memory leak in C?
2
Which of these is a correct syntax for a function pointer?
3
What does the 'restrict' keyword indicate in C99?
4
Which of these functions is used to manipulate file pointers?
5
What is the difference between memcpy() and memmove()?
6
What is the maximum number of arguments that a C function can accept?
7
What is the output of printf("%d" sizeof('A')); assuming int=4 bytes?
8
Which of these is a dangling pointer?
9
Which keyword is used to handle exceptions in C?
10
Which of the following is a valid way to create a multi-dimensional array?
11
What is the purpose of the 'fgets()' function?
12
Which function is used to compare two strings in C?
13
What is the meaning of 'undefined behavior' in C?
14
Which macro is used to prevent multiple inclusion of header files?
15
Which operator is used to allocate memory dynamically in C?
16
What is the difference between 'const char *p' and 'char *const p'?
17
What is the return type of malloc()?
18
What is the size of a pointer on a 64-bit system?
19
What is the purpose of the 'inline' keyword?
20
What does 'inline' keyword suggest to the compiler?
21
Which function is used to read formatted data from file?
22
What is 'typedef struct' used for?
23
What is the meaning of 'volatile int x;'?
24
What is the difference between exit() and _exit()?
25
What is the purpose of the 'volatile' keyword?