#include <iostream> using namespace std; #define myNode NodeP #define f(x) fp(x##NodeStr) int fp(void * x) { return 0 ; } int main() { void * NodePNodeStr = NULL; f( myNode); // your code goes here return 0; }
Standard input is empty
prog.cpp: In function 'int main()':
prog.cpp:14:5: error: 'myNodeNodeStr' was not declared in this scope
f( myNode);
^
prog.cpp:5:17: note: in definition of macro 'f'
#define f(x) fp(x##NodeStr)
^
Standard output is empty