0
Q:

what is a global variable

Global variables allow you to access data between collections,
requests, test scripts, and environments. Global variables
are available throughout a workspace. I use Global variables
to quickly test something.
0
#include<iostream> 
  
using namespace std; 
  
int x;  // Global x 
  
int main() 
{ 
  int x = 10; // Local x 
  cout<<"Value of global x is "<<::x<<endl; 
  cout<<"Value of local x is "<<x;   
  getchar(); 
  return 0; 
} 
1

New to Communities?

Join the community