Ok, so when you use the 'new' keyword, the pointer is kind of like the variable, right? So if you had
int* variable = new int;
*variable = 6;
ok so is that correct (syntax)? what would happen if i tried to increment the address of *variable? like this:
could i also do this:
int* variable = new int = 6;
and if i try to assign the pointer an address like this:
then am i saying that the address is whatever x equals, and not pointing to the variable x?
I dont have a compiler on this computer right now so i cant test it out. please answer my questions.