The ones who are crazy enough to think they can change the world are the ones who do.
- Steve Jobs

Scope rules in C

p>Hey duddy, declare a variable and use it, how long will it exist?. Is the concept covered in scope rules.

What Is Scope

  • A scope is a region of the program where the variables can be accessed.
  • A scope contains a group of statements and variables. The variables declared within a block can be accessed only within that block.
  • Programmers can declare the variables both inside and outside of block.
Scope in C

Types of Scope

Scope in c

Report Us

We may make mistakes(spelling, program bug, typing mistake and etc.), So we have this container to collect mistakes. We highly respect your findings.

Report