c - How to correctly define char array -
Anyone should know that ASF_OBJECT_GUID_TEST
to avoid compiling error in the line given below , Or where can I find more information about this?
#define ASF_OBJECT_GUID_TEST {(four) 0x75, (four) 0xB2, (four) 0x00} zero test function (four * testChar) {int} int argc, char * argv []) {Char test [] = ASF_OBJECT_GUID_TEST; TestFunction (test); TestFunction (ASF_OBJECT_GUID_TEST); // & lt; - Code returns fails to compile this line of 0; }
{(four) 0x75, (four) 0xB2, (char ) 0x00}
is an initial list and does not itself have an array (or an indicator) in C8 9.
You can use instead:
#ff_obbcccidit idef "\ x75 \ xB2"
Comments
Post a Comment