Check out example codes for "foind th output c++". It will help you in understanding the concepts better.

Code Example 1

// Assume that integers take 4 bytes. 
#include<iostream> 
  
using namespace std;    
  
class Test 
{ 
  static int i; 
  int j; 
}; 
  
int Test::i; 
  
int main() 
{ 
    cout << Test::i; 
    return 0; 
}

Learn ReactJs, React Native from akashmittal.com