C语言
文章平均质量分 92
chenshaobin6740680
学习。
展开
-
sizeof和strlen的区别及使用详解
sizeof和strlen的区别及使用详解 详细见链接: https://blog.csdn.net/magic_world_wow/article/details/80500473 首先我们来看一下sizeof和strlen的区别: sizeof操作符的结果类型为size_t(The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type (including aggregate原创 2020-09-12 15:37:52 · 259 阅读 · 0 评论 -
c语言字符串库函数#include<string.h>
c语言字符串库函数#include<string.h> 字符串函数<string.h> https://www.cnblogs.com/haore147/p/3647555.html 在头文件<string.h>中定义了两组字符串函数。第一组函数的名字以str开头;第二组函数的名字以mem开头。只有函数memmove对重叠对象间的拷贝进行了定义,而其他函数都未定义。比较类函数将其变量视为unsigned char类型的数组。 1 strcpy #include <s原创 2020-09-12 15:38:27 · 5449 阅读 · 0 评论