#include <stdio.h> union { char chVals[16]; }uu; struct { char chVals[16]; int a; }ss; int main() { char chVals[16]; char* pVals = chVals; printf("%lu\n", sizeof(ss)); printf("%lu\n", sizeof(uu)); printf("%lu\n", sizeof(chVals)); printf("%lu\n", sizeof(pVals)); return 0; }[answer]
20
16
16
4
沒有留言:
張貼留言