InterviewSolution
| 1. |
What is a static function? |
|
Answer» A static FUNCTION is a function that has a scope LIMITED to an object file. This means these functions are visible to other functions in the same file or same translation unit. Example:static int fun(void) Note: A static member function can not be declared as a const, volatile, or const volatile. Download our complete LIST of information technology interview questions and answers to read it offline in the form of a PDF document. 15. When is a switch statement better than multiple if statements?The switch statement is a better option than multiple if statements when you are just giving the INPUT directly without actually doing any CONDITION checking in the statements. |
|