couldn't connect to host

导读 您好,肖大哥就为大家解答关于couldnt connect to host相信很多小伙伴还不知道,现在让我们一起来看看吧!1、char :1个字节;   char*...

您好,肖大哥就为大家解答关于couldn't connect to host相信很多小伙伴还不知道,现在让我们一起来看看吧!

1、char :1个字节;   char*(即指针变量):4个字节(32位的寻址空间是2^32, 即32个bit,也就是4个字节。

2、同理64位编译器);    short int:2个字节;     int:4个字节;     unsigned int :4个字;    float: 4个字节;    double:8个字节;    long:4个字节;    long long:8个字节;    unsigned long: 4个字节我用的书里,long写的是8个, 我认为应该是错误的,是 4个字节#include int main(void) {    printf("char 所占字节数 %d", sizeof(char));printf("int 所占字节数 %d", sizeof(int));    printf("short 所占字节数 %d", sizeof(short));    printf("long 所占字节数 %d", sizeof(long));    printf("float 所占字节数 %d", sizeof(float));    printf("double 所占字节数 %d", sizeof(double));}。

本文就讲到这里,希望大家会喜欢。

免责声明:本文由用户上传,如有侵权请联系删除!