c preprocessor - Defining Binary Macros in C++ -


Can someone explain why the following error occurs:

  #define bla "\ XA" four A [2] = {0}; Memcopy (A, BLA, 1); // a [0] = 0x0a & lt; - right // a [1] = bla; // '=': 'const char [2]' to 'four' can not be converted  

thanks,

rm

Try:

  #define bla '\ xA'  

However this memcpy will stop working.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -