0 votes
121 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 116 views
0 votes
1 answer 128 views
0 votes
1 answer 92 views
0 votes
1 answer 84 views
asked Jun 11, 2022 in Discuss by nehapatil (3.2k points)
0 votes
1 answer 100 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

535 users

...