0 votes
146 views
in Discuss by (98.9k points)
edited
What do you mean by scope of a variable? What are the different types of scopes that a variable can have?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
Scope indicates the region over which the variable's declaration has an effect. The four kinds of scopes are—file, function, block and prototype.

Related questions

0 votes
1 answer 136 views
0 votes
1 answer 148 views
0 votes
1 answer 110 views
0 votes
1 answer 99 views
asked Jun 11, 2022 in Discuss by nehapatil (3.2k points)
0 votes
1 answer 113 views
asked Jun 11, 2022 in Discuss by nehapatil (3.2k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...