The following program fragment
int i=10;
void main ( )
{
int i=20;
{
int i=30.;
cout << i << :: i ;
}
}
A. | prints 3010 |
B. | prints 3020 |
C. | will result in a run time error |
D. | none of the above |
Answer : A Explanation : :: is basically meant to manipulate a global variable, in case a local variable also has the same name. |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |