Re:A convenient untruth: Array notation in C is a lie
by wruza on Thursday December 22, 2016 @01:52PM
(#13239416)
Otoh,
is obviously a char. Do you put a space between dereference operator and its operand?
[ Parent
| on HN ]
Re:A convenient untruth: Array notation in C is a lie
by itsuart on Thursday December 22, 2016 @02:10PM
(#13239525)
No, I don't. If foo is a (storage of) pointer to something, to get that something from memory I use dereference operator `*
so
*foo = 'a';
will write value of 'a' into memory at address that is in foo. type* foo;
is declaration and *foo
is dereferencing.