Exercise :: Functions - Point Out Correct Statements
- Functions - General Questions
- Functions - Find Output of Program
- Functions - Point Out Errors
- Functions - Point Out Correct Statements
- Functions - True / False Questions
- Functions - Yes / No Questions
1. | Which of the following statements are correct about the program?
|
|||||||
Answer: Option B Explanation: In printf("%p\n", main()); it calls the main() function and then it repeats infinetly, untill stack overflow. |
2. | There is a error in the below program. Which statement will you add to remove it?
|
|||||||
Answer: Option B Explanation: The correct form of function f prototype is float f(int, float); |
3. | Which of the following statements are correct about the function?
|
|||||||
Answer: Option C Explanation: Yes, this function calculates and return the factorial value of an given integer num. |