Which approach is more efficient for passing large structures to functions?
What is the primary purpose of function prototypes in C?
Which of the following is a valid function declaration in C?
What happens when a function is called without a return statement reaching the end?
In C, how many parameters can a function have at maximum?
Advertisement
What is the scope of a static variable declared inside a function?
Which calling convention passes parameters through the stack from right to left?
What will be the output of the following code?
int add(int a, int b) { return a + b; }
int main() { printf("%d", add(5, add(3, 2))); return 0; }
What is the difference between call by value and call by reference in C?
Analyze the following pointer to function declaration: int (*ptr)(int, int);
What is the output of this recursive function?
int fact(int n) { if(n<=1) return 1; return n*fact(n-1); }
main() { printf("%d", fact(4)); }
Which of the following is true about function pointers in C?
What is the primary advantage of using inline functions?
Consider the function: void func(int *arr, int size). Which statement is correct?
What does the restrict keyword do when used with pointer parameters in C99?
Which approach correctly implements a function returning multiple values?
What will this code output?
int x = 10;
int* getAddress() { return &x; }
main() { int *ptr = getAddress(); printf("%d", *ptr); }
In C, what is the purpose of the return statement in a void function?
What happens when a function with variadic parameters is called with fewer arguments than expected?
Which of the following correctly declares a variadic function?