![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
文章平均质量分 85
张·小羊
这个作者很懒,什么都没留下…
展开
-
[C/C++]C语言中数据在内存中的存储
数据类型:类型可以归类为 整形家族(包括int,long,short,long long,char); 浮点数家族(包括float,double); 构造类型(数组类型;结构体类型 struct;枚举类型 enum;联合类型 union); 指针类型..转载 2021-03-15 14:28:47 · 272 阅读 · 0 评论 -
字符串反转
字符串反转的代码: #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *s = (char *)malloc(sizeof(char) * 32); // scanf("%s", s); char *begin = s; //记录字符串的起始位置 char *p = s; //p = s + strlen(s) - 1; while (*p原创 2020-11-14 22:19:35 · 88 阅读 · 0 评论