0 votes
464 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 395 views
0 votes
1 answer 405 views
0 votes
1 answer 379 views
0 votes
1 answer 359 views
asked Jun 11, 2022 in Discuss by nehapatil (3.2k points)
0 votes
1 answer 341 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!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
Doubtly Earned a badge

5.7k questions

5.1k answers

108 comments

650 users

...