c++ - Creating pointer using #define -
is possible create pointer using #define?
this:
#define *hey i'll use this:
#define *hey 2 ... int *s=hey;
no, asterisks aren't allowed in #define macro names.
your example variable declaration wouldn't work anyway, because doesn't contain text *hey, contains hey, doesn't match defined macro name.
what's code intended do? make pointer points number 2?
Comments
Post a Comment