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

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -