1.数组可以有多维数组.c99支持动态数组,c11和c99之前不再支持. 2.数组 初始化一个后,后面的自动初始化为0,如果不初始化,都是垃圾值. 3.数组初始化 可以指定 ss[10]={0,2,3,[2]=3,};.通过[x]可以指定x位置数组初始化,如果该位置已经初始化,将被替换. 4.对于指针的理解.指针非常简单易用.指针有类型,比如char int long float 等,这是指指针指向的数据是char int long等,而指针本身是一种全新的类型,不在普通类型范围内.比如pr
before anything.. sizeof is an operand! sizeof is an operand! sizeof is an operand! 重要なことは三回にしませんね! int *ptr; sizeof *ptr; = sizeof (int); --------------the following are the original text------------------ compile in some standard by: -ansi,-std=c9
语言法典,C/C++社区人手一份,技术讨(hu)论(peng)必备 ISO IEC C99 https://files.cnblogs.com/files/racaljk/ISO_C99.pdf ISO IEC C11 https://files.cnblogs.com/files/racaljk/ISO_C11.pdf ISO IEC C++11 https://files.cnblogs.com/files/racaljk/ISO_CPP_11.rar ISO IEC C++14 https
语言法典,C/C++社区人手一份,技术讨(hu)论(peng)必备 ISO IEC C99 https://files.cnblogs.com/files/racaljk/ISO_C99.pdf ISO IEC C11 https://files.cnblogs.com/files/racaljk/ISO_C11.pdf ISO IEC C++11 https://files.cnblogs.com/files/racaljk/ISO_CPP_11.rar ISO IEC C++14 https
1.malloc在C和C++中的区别 1.1.C中可以将任意的指针赋值给void*类型的变量.也可以将void*类型的值赋值给通常的指针变量. -------------------------------------------------------------------------------------------------------ANSI C 以前的C因为没有void*这样的类型,所以malloc的返回值类型被定义为char*.char*是不能被赋给指向其他类型的指针变量的.所