Scope of variables in C++

Computer Science Level pending

Can you guess the output..? \text{Can you guess the output..? }

235 245 255

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Hasmik Garyaka
Sep 15, 2017

changevar function changes local var which is not visible in main. var=24 because ++ is prefix and ::var is global variable =5.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...