0 votes
207 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 191 views
0 votes
1 answer 216 views
0 votes
1 answer 174 views
0 votes
1 answer 150 views
asked Jun 11, 2022 in Discuss by nehapatil (3.2k points)
0 votes
1 answer 169 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

610 users

...