What is the scope of a local variable defined inside a function in C?

  • Global scope
  • Limited to the block
  • Limited to the function
  • No scope
In C, a local variable defined inside a function has scope limited to that specific function. It cannot be accessed from outside the function.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *