An ordinary character literal that contains more than one c-char is a multicharacter literal. A multicharacter literal has type int and implementation-defined value.
android代码,frameworks/base/include/media/stagefright/MetaData.h文件中有如下定义:
// The following keys map to int32_t data unless indicated otherwise.
enum {
kKeyMIMEType = 'mime', // cstring
kKeyWidth = 'widt', // int32_t, image pixel
kKeyHeight = 'heig', // int32_t, image pixel
kKeyDisplayWidth = 'dWid', // int32_t, display/presentation
kKeyDisplayHeight = 'dHgt', // int32_t, display/presentation
.............
};
enum { kTypeESDS = 'esds', kTypeAVCC = 'avcc', kTypeD263 = 'd263', }; 所以这也是一种用法