07 2015 档案
摘要:int checkcpu (void){ { union w { int a; char b; }c; c.a = 1; return (c.b == 1); }} 根据返回值判断处理器是大端还是小端。 什么是高/低地址端 首先我们要知...
阅读全文
摘要:1. 输入一串字符,计算其中空格的个数。 #include #include int function(char *str); int main() { char str[30]; int num = 0; sc...
阅读全文
摘要:strcpy函数原型 char *strcpy(char *strDest, const char *strSrc) { if (strDest == NULL || strSrc == NULL) retu...
阅读全文
摘要:ptr = (char *)malloc(0) char *ptr; if ((ptr = (char *)malloc(0)) == NULL) puts( "Got a null p...
阅读全文

浙公网安备 33010602011771号