0 votes
136 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 130 views
0 votes
1 answer 143 views
0 votes
1 answer 106 views
0 votes
1 answer 94 views
asked Jun 11, 2022 in Discuss by nehapatil (3.2k points)
0 votes
1 answer 109 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

557 users

...