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

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -