Question 1 of 25
Hints left: 3
Q1
In C, what is the purpose of the 'malloc' function?
Q2
What is the result of the expression ptr++ in C, where ptr is a pointer?
Q3
What is the purpose of the 'free' function in C when used with pointers?
Q4
In C, what is a null pointer (NULL or 0)?
Q5
What is the result of the expression ptr-- in C, where ptr is a pointer?
Q6
In C, what is the purpose of the 'void' pointer type (void*)?
Q7
In C, what is the purpose of the 'memcpy' function?
Q8
In C, what is the purpose of the 'const' keyword when used with a pointer declaration?
Q9
In C, what is a function pointer?
Q10
What is the result of the expression ptr += 2 in C, where ptr is a pointer?
Q11
In C, what is the purpose of the 'calloc' function?
Q12
In C, how do you declare an array of pointers to integers?
Q13
What is the result of the expression *ptr = NULL in C, where ptr is a pointer?
Q14
What is the result of the expression *NULL in C?
Q15
Determine Output: void main() { char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest)); }
Q16
In C, what is a pointer to a constant value (const int*)?
Q17
In C, what is a pointer to a function that takes no arguments and returns an integer?
Q18
In C, what is a pointer to a constant pointer (int* const)?
Q19
What is the result of the expression ptr = NULL in C, where ptr is a pointer?
Q20
What is the result of the expression sizeof(char*) in C, assuming a char pointer on a typical system?
Q21
In C, what is a double pointer (int**)?
Q22
What is the result of the expression *ptr = 42 in C, where ptr is a pointer to an int?
Q23
How do you declare a pointer to a function that takes two integers and returns an integer in C?
Q24
What is the result of the expression &array[0] in C, where array is an integer array?
Q25
What is the result of the expression &variable in C, where variable is a variable of type int?