Answers for "c++ pong"

C++
0

c++ poitner

// A pointer in c++ is a variable whose value is a memory address. 

int main() {
  	int x;      // 'regular' int
  	int *y;     // 'pointer-to-an-int
  
    x = 5;      // assign x some value which is an integer
    y = &x;     // use the address-of operator to get the address of x;
                // store that value as the value of y. 
	return 0; 
}
Posted by: Guest on June-21-2021

Browse Popular Code Answers by Language