Find Output Q.1

0. The following program fragment
int i=10;
void main ( )

{
int i=20;
{
int i=30.;
cout << i << :: i ;    
}
}

  • Option : A
  • Explanation : :: is basically meant to manipulate a global variable, in case a local variable also has the same name.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *