Hi, so ive been teaching my self pointers, and I just wanted to clarify what I assume so far.
You cant declare: int var1 = &var2;
You MUST use a pointer to store an address: int *var1 = &var2;
When assigning a pointer variable, it must always point to an address. So that means you cant go: int *var1 = var2;
So that means I can always assuming, when working with a pointer, the format when declaring one is ALWAYS :
if your initilizing it:
Datatype *varName = &varName;
if your assigning it:
varName(early declared as a pointer) = &varName;
Ive tested all this and it proves to be true, but I was wondering if you guys had any further input. Thanks =D