Scope 15

What type of scope is in this C++ code?

OK So I need to identify the types of scope of each Identifier.

The type of scopes I know are Block Scope, Function-Prototype Scope, File Scope and Function Scope.

1. int w = 100;
2.
3. void foo(int x);
4.
5. int main( )
6. {
7. int y = 5;
8.
9. for(int i = 0; i < y; i++)
10. foo( i );
11.
12. return 0;
13. }
14.
15. int v = 12;
16.
17.
18. void foo(int z)
19. {
20. w = w + z;
21. }

1 = global scope

3 = function prototype scope

7 = function scope

9 = block scope

15 = global scope

20 = global scope

Find Scope 15 On eBay Below:

Leupold 15 30x50mm Gold Ring Compact Spotting Scope Titan Gray Multi Coat 120375
Leupold 15 30x50mm Gold Ring Compact Spotting Scope Titan Gray Multi Coat 120375
$530.17
Leupold 15 45x60mm SX 1 Ventana 2 Angled Spotting Scope Black Finish 170757
Leupold 15 45x60mm SX 1 Ventana 2 Angled Spotting Scope Black Finish 170757
$312.12
BARSKA 15 40x50 Colorado Spotting Scope
BARSKA 15 40x50 Colorado Spotting Scope
$34.02
New 15 45x60AE 45Spotting Scopes FMC for Shooting+Universal Adapter+54 Tripod
New 15 45x60AE 45Spotting Scopes FMC for Shooting+Universal Adapter+54 Tripod
$106.99
SVBONY 15 45x50mm Waterproof Angled Zoom Spotting Scope Telescope+Tripod Case
SVBONY 15 45x50mm Waterproof Angled Zoom Spotting Scope Telescope+Tripod Case
$55.99
15 45x50mm Angled Zoom Spotting Scope Waterproof  Tripod  Phone Mount Adapter
15 45x50mm Angled Zoom Spotting Scope Waterproof Tripod Phone Mount Adapter
$60.99
Visionking 15 45x65L 100 Waterproof Spotting scope multi coated with tripod
Visionking 15 45x65L 100 Waterproof Spotting scope multi coated with tripod
$200.00
Redhead OutLook Combo Kit 10x42 Binoculars  15 45X60 Spotting Scope
Redhead OutLook Combo Kit 10x42 Binoculars 15 45X60 Spotting Scope
$119.99
NEW Carl Zeiss Diascope Straight 65mm Spotting Scope with Vario 15 45x Eyepiece
NEW Carl Zeiss Diascope Straight 65mm Spotting Scope with Vario 15 45x Eyepiece
$1,922.00
NEW Carl Zeiss Diascope Straight 65mm Spotting Scope with Vario 15 56x Eyepiece
NEW Carl Zeiss Diascope Straight 65mm Spotting Scope with Vario 15 56x Eyepiece
$1,922.00
Barska Waterproof Naturescape Spotting Scope w Tripod  Case15 45x50 AD10958
Barska Waterproof Naturescape Spotting Scope w Tripod Case15 45x50 AD10958
$89.99
Tasco 21EB Spotting Scope 15x 45x50mm Zoom w tripod
Tasco 21EB Spotting Scope 15x 45x50mm Zoom w tripod
$24.99
SeoulOptics WindRiver 15 45x60mm Angle Waterproof Spotting Scope
SeoulOptics WindRiver 15 45x60mm Angle Waterproof Spotting Scope
$275.99
SeoulOptics WindRiver 15 45x60mm Straight Waterproof Spotting Scope
SeoulOptics WindRiver 15 45x60mm Straight Waterproof Spotting Scope
$264.99
BARSKA 15 40x50 Colorado Spotting Scope Fully coated optics porro prism systen
BARSKA 15 40x50 Colorado Spotting Scope Fully coated optics porro prism systen
$32.81
Barska 15 45x50mm WP Naturescape Spotting Scope Angled w Tripod Black AD12682
Barska 15 45x50mm WP Naturescape Spotting Scope Angled w Tripod Black AD12682
$119.99
Rare Vintage Bausch and Lomb Spotting Scope HG2853 15x30x  60x
Rare Vintage Bausch and Lomb Spotting Scope HG2853 15x30x 60x
$980.00
BUSHNELL 15 45X60 LEGEND ULTRA HD SPOTTING SCOPE
BUSHNELL 15 45X60 LEGEND ULTRA HD SPOTTING SCOPE
$392.49
BUSHNELL LEGEND TACTICAL 15 45X60MM T SERIES SPOTTING SCOPE
BUSHNELL LEGEND TACTICAL 15 45X60MM T SERIES SPOTTING SCOPE
$529.63
Leupold SX 1 Ventana 2 Spotting Scope 15 45x60mm Angled Gray Black
Leupold SX 1 Ventana 2 Spotting Scope 15 45x60mm Angled Gray Black
$357.00
Black 15x 40x 50MM Zoom Variable Power Spotting Scope
Black 15x 40x 50MM Zoom Variable Power Spotting Scope
$64.99
Bausch and Lomb Elite 15 45x60 Spotting Scope
Bausch and Lomb Elite 15 45x60 Spotting Scope
$110.50
VINTAGE REDFIELD SPOTTING SCOPE RATED 15X 45X JAPAN
VINTAGE REDFIELD SPOTTING SCOPE RATED 15X 45X JAPAN
$39.99
Hiram 15 45x60 Prism Spotting Scope With Tripod Waterproof Scope For Bird Watch
Hiram 15 45x60 Prism Spotting Scope With Tripod Waterproof Scope For Bird Watch
$41.37
Tasco Spotting Scope 20 E 15X 45X50MM Zoom Coated Lenses
Tasco Spotting Scope 20 E 15X 45X50MM Zoom Coated Lenses
$39.99
Vintage Swift Mark II Zoomscope 15x 60x 841 Sporting Scope
Vintage Swift Mark II Zoomscope 15x 60x 841 Sporting Scope
$9.99
Redfield Spotting Scope 15X 60X60 Made in Japan
Redfield Spotting Scope 15X 60X60 Made in Japan
$129.00
Vintage Swift Model 821 Spotting Scope With Tripod and Case 15X 60X zoom
Vintage Swift Model 821 Spotting Scope With Tripod and Case 15X 60X zoom
$59.99
Leupold Wind River Sequoia 15 45x60 mm Angled Spotting Scope
Leupold Wind River Sequoia 15 45x60 mm Angled Spotting Scope
$90.00
Waterproof Angled 15 45x50mm Zoom Spotting Scope with Cell Phone Mount Adapter
Waterproof Angled 15 45x50mm Zoom Spotting Scope with Cell Phone Mount Adapter
$67.93
Waterproof Zoom Spotting Scope+Tripod for Bird Watching Hiking Hunting Fishing
Waterproof Zoom Spotting Scope+Tripod for Bird Watching Hiking Hunting Fishing
$59.27
LEUPOLD Wind River 15 45x60mm SPOTTING SCOPE Good Overall Condition NO RESERVE
LEUPOLD Wind River 15 45x60mm SPOTTING SCOPE Good Overall Condition NO RESERVE
$81.00


Recently Purchased Scope 15:


bushnell spacemaster spotting scope camouflage 15x45x zoom tripod , barska co11500 1540x50 colorado spotting scope , barska ad10782 spotter sv 1545x50 angled rotatable spotting scope with tripod, vortex viper hd 1545x65 straight spotting scope vpr65shd free s, sig sauer oscar5 spotting scope 1545x65mm hdx glass, sightmark latitude 1545x60 tactical spotting scope sm11033t, sightmark latitude 1545x60 spotting scope sm11033, winchester wt631c 1545 60mm variable power spotting scope with standcase, bausch amp; lomb discoverer 1560x spotting scope, 1545x60ae fmc 45spotting scopes54tripodamp;universal adapter for shootingamp;track, adams vintage rifleman spotting scope amp; tripod with case amp; 1560x lenses, leupold sx1 ventana 2 1545x60mm straight spotting scope170755, new vortex viper 1545x65mm hd straight spotting scope v501, baush amp; lomb spotting scope zoom 15x to 60x with standard camera tripod mount, m49 military sniper spotting scope amp; m15 tripod amp; carrying cases, barska ad11106 1545x60 wp naturescape ed glass spotting scope, barska 1545x60 wp naturescape ed glass spotting scope ad11106, konus 15x45x65mm konuspot65 spotting scope with tripod 7116, swift 841 telemaster 1560x spotting scope in original box tested working, blaser 15x45x50mm spotting scope wcase, vanguard signature 69 1545 x scope, ncstar spotting scope 1540x50mm w tripod new, vintage bushnell discontinued spotting scope15x45x mm with adjustable tripod, bushnell imageview 1545x70mm 5mp camera spotting scope new, barska 1540x50 colorado spotting scope, vanguard endeavor hd 65a angled eyepiece spotting scope with 1545x, eyebre 1545x60 zoom straight angled angled spotting scope w tripod us v7v4, weaver classic 1540x60mm spotting scope w tripod amp; leather case, tasco 20eb 15 45 x 50mm zoom spotting scope, vintagemonoscopeall metalspotting scopemonocularw tripod 15 x 60japan, leupold sx1 ventana 2 1545x60mm spotting scope kit grayblack md 170756, vortex optics viper hd 1545x65 straight spotting scope vpr65shd, vintage swift mark ii zoomscope 15x60x 841 sporting scope, tasco spotting scope 20 e 15x45x50mm zoom coated lenses, leupold wind river 1545x60mm spotting scope good overall condition no reserve, vintage swift model 821 spotting scope with tripod and case 15x60x zoom, winchester wt631 1545x60 variable spotting scope excellent new wcase complete, vintage redfield spotting scope rated 15x 45x japan, bausch and lomb elite 1545x60 spotting scope, sightron si series spotting scope 1545x60mm green, bushnell imageview 1545x70mm 5mp camera spotting scope 111545, 1545x60 zoom high quality angled spotting scope telescope tripod , barska ad11106 naturescape ed 1545x60 glass spotting scope, leupold wind river sequoia 15 45x60 mm angled spotting scope , new sv19 1545x60se ipx6 waterproof fmc 47m23m spotting scopes, long range 1545x65 zoom spotting scope monocular wideangle waterproof telescope, leupold green ring spotting scope 1545x60, vintage classic redfield spotting scope rated 15x 45x clear optics japan, eyebre 1545x60 zoom straight angled angled spotting scope w tripod us w3f5, zeiss diascope victory 65 t fl 65mm angled scope w 1556x eyepiece 1787879, 15x40x50 grooved spotting scope with mini tripodclam package, 1540x50mm zoom prism spotting scope with stand sightinghiking camping scope, fmc optics monocular 1545x50 zoom spotting scope bak astronomical telescope , long range pursuit 1545x65 spotting scope monocular wideangle zoom telescope, pre owned tasco zoomspotting scope with tri pod and hard case 1545x50mm, leupold gold ring compact 1530x50mm spotting scope kit, sporting goods hunting barska 1540 x 50mm colorado spotting scope