Interview Questions and Answers :: Ericsson
Home > Experience Archives > Ericsson > Interview Question Set 2 > Discussion
6. What is the default scope of a function?
Answer:
functions have either global scope or file scope. Global scope applies to a normal function that's visible throughout the entire program.
File scope applies to a function you've marked as "static", so it's only visible within the same translation unit.
Amit
23 Aug, 2016 5:59 PM
functions have either global scope or file scope. Global scope applies to a normal function that's visible throughout the entire program.
File scope applies to a function you've marked as "static", so it's only visible within the same translation unit.
File scope applies to a function you've marked as "static", so it's only visible within the same translation unit.
Report Error
Report Error
Please Login First Click Here