Question: How are static functions different from global functions?

  1. Static functions must be declared in advance of being defined.
  2. Static functions must be declared is a separate header file.
  3. Static functions always return the same value.
  4. Static functions can be accessed only in the file where they are declared.

Answer: The correct answer of the above question is Option D:Static functions can be accessed only in the file where they are declared.