C语言(篇3)
#include <stdio.h>
#include <string.h>
union Data
{
long long i[1];
int a[2];
char str[41];
};
int main( )
{
union Data data;
printf( "数据占用的内存大小:%d\n", sizeof(data));
return 0;
}
#include <string.h>
union Data
{
long long i[1];
int a[2];
char str[41];
};
int main( )
{
union Data data;
printf( "数据占用的内存大小:%d\n", sizeof(data));
return 0;
}
Last one:如果爱忘了
Next one:停下来,看看风景
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:★☆☆☆☆
Difficulty:★★★★☆
quality:☆☆☆☆☆
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!
This paper typing ranking TOP20
登录后可见