What is the output of the following code snippet?

int n = 7;

int main()
{ float n = 10.5;
cout << "\nGlobal int value of n = " << ::n << endl; return 0; }

Options
- 10.5
- 7
- n
- none of the above


CORRECT ANSWER : 7

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement