int a = 1;
int b = 2;
int c = 3;
std::vector<int*> ListOfVariableReferences;
ListOfVariableReferences.push_back(&a); // Adds the address of a to the list.
ListOfVariableReferences.push_back(&b); // Adds the address of b to the list.
ListOfVariableReferences.push_back(&c); // Adds the address of c to the list.
*ListOfVariableReferences[0] = 5; // Changes the value of the variable a declared at the top
int a = 1;
int b = 2;
int c = 3;
std::vector<int*> ListOfVariableReferences;
ListOfVariableReferences.push_back(&a); // Adds the address of a to the list.
ListOfVariableReferences.push_back(&b); // Adds the address of b to the list.
ListOfVariableReferences.push_back(&c); // Adds the address of c to the list.
*ListOfVariableReferences[0] = 5; // Changes the value of the variable a declared at the top