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