Analyze: int (*funcPtr)(int, int); What does this declaration represent?
In C99 standard, what is true about function declarations at block scope?
Which approach is more efficient for passing large structures to functions?
What does the restrict keyword do when used with pointer parameters in C99?
What will this code output?
int x = 10;
int* getAddress() { return &x; }
main() { int *ptr = getAddress(); printf("%d", *ptr); }
Advertisement
What happens when a function with variadic parameters is called with fewer arguments than expected?
How are function arguments evaluated in C?
In the context of function pointers, what does the restrict keyword do?
Which of the following about variadic functions is true?
What is a callback function in C?
In C, what is the relationship between array parameters and pointers in functions?
In a recursive function implementing factorial calculation, the base case is missing. What is the most likely consequence during execution?
Consider a 2D array int matrix[3][3]. If we access matrix as a 1D array, how many total elements can we access?
What will be output of the following code?
char str[] = "GATE2025";
for(int i=0; str[i]!='\0'; i++)
if(i%2==0) printf("%c", str[i]);
Consider: int arr[3][4][5]. What is the size of arr[0][0]?
Which of the following is true about strcpy(dest, src)?
What is the main difference between char arr[] = "Test" and char *ptr = "Test"?
If ptr is a pointer to int array and ptr = arr, what does ptr[3] represent?
What is the correct way to safely copy strings in modern C?
In the declaration int *arr[10], what is arr?