Otoh,
*foo
is obviously a char. Do you put a space between dereference operator and its operand? *foo
is obviously a char. Do you put a space between dereference operator and its operand? *foo = 'a';
will write value of 'a' into memory at address that is in foo. type* foo;
is declaration and *foo
is dereferencing.