// Variable Scope // A and B are declared as global Variables double A = 100; double B = 200; double Scope( double A, double C) { // A and C are variables local to function "Scope" // since they are parameters to the function // if B below is declared (using double) it will // be local to "Scope". // As is, it references the variable "B" declared // in global scope. B = 1000; return A * B / C; } // Call "Scope" Scope(1,2);