In: Computer Science
Code::
#include<iostream>
#include<cmath>
using namespace std;
//global declaration of the p
int p = 7;
int main()
{
// declar the var value externally
extern double var ;
// local variable p 90 absolute value
int p = abs(-90);
// here ::p means global value of p = 7 and p means local value
of p = 90
//::p + p - var = 7 + 90 - 5.5
//hence the result is 91.5
cout << ::p + p - var << endl;
//system pause
system("pause");
}
//external declaratoin of the var
double var = 5.5;