摘要:
原题:在32位机器上,下列代码中#pragmapack(2)classA{inti;unionU{charbuff[13];inti;}u;voidfoo(){}typedefchar*(*f)(void*);enum{red,green,blue}color;}a;sizeof(a)的值是()A、20 B、21C、22 D、24 E、非以上选项解析:classA{inti;//4unionu{charbuff[13];inti;}U;//13//1对齐voidfoo(){}//仅声明,不占空间typedefchar*(*f)(void);//仅声明,不占空间enum{red,green,bl 阅读全文
posted @ 2013-05-03 12:50
mapleyuan
阅读(218)
评论(0)
推荐(0)
浙公网安备 33010602011771号