Functions – Multiple Choice Questions (MCQs)
- 
                        
- 
                        38. What is the purpose of using header files for function declarations?
- 
                        39. What is the difference between declaring a function and defining a function?
- 
                        40. What is the advantage of modular programming using functions?
- 
                        41. What is a side effect of a function?
- 
                        42. What is a pure function?
- 
                        43. What is the purpose of the 'static' keyword when used with a global function?
- 
                        44. What is the difference between calling a function by value and calling a function by reference?
- 
                        45. What is the output of the following code? `int multiply(int a, int b) { a = a * 2; return a * b; } int main() { int x = 3, y = 4; int result = multiply(x, y); printf(\%d %d %d\"",x,y,result); return 0; }`"""
- 
                        46. What is the output of the following code? `void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; } int main() { int x = 5, y = 10; swap(&x, &y); printf(\%d %d\"",x,y); return 0; }`"""
- 
                        47. Can a function call itself indirectly (through another function)?
- 
                        48. What is the maximum number of arguments a function can have in C?
