2020年10月17日

摘要: 宋体: C 语言虽然没有字符串类型,但是 C语言提是存在字符串这个概念的,也就是字符串常量:以 NUL 字节结尾的 0 个或多个字符组成的序列。字符串常量是不可被修改的,一般用一对双引号(" ")括起的一串字符来表示字符串常量,如: "Hello!"、"\aWarning!\a"、"123abc\n 阅读全文
posted @ 2020-10-17 18:42 荆棘人 阅读(109) 评论(0) 推荐(0)
摘要: 原始代码升级版本: #include <stdio.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, c 阅读全文
posted @ 2020-10-17 17:58 荆棘人 阅读(151) 评论(0) 推荐(0)
摘要: 代码: #include <stdio.h> int * Calculate(int a, int b) { int iData; iData = a+b; return &iData; //return the address of iData; } int main(int argc, char 阅读全文
posted @ 2020-10-17 16:04 荆棘人 阅读(205) 评论(0) 推荐(0)
摘要: 参考资料:https://aticleworld.com/pointers-in-c/ 阅读原文更容易理解,建议阅读原文。原文很长,初学者可能需要好几个连续的小时才能阅读完毕。比如:8小时。 不要企图,阅读一两篇文章就想理解一个概念,建议多读点不同人的资料。 阅读前提: 为更好理解本文,建议先阅读点 阅读全文
posted @ 2020-10-17 14:40 荆棘人 阅读(648) 评论(0) 推荐(0)
摘要: 不要阅读本文,格式不好看,最重要的是知乎上有多个优秀的答案,结合着看更容易理解。本人只是作学习笔记,自己复习时,也会跳到知乎上看原答案。 作者:Wayne链接:https://www.zhihu.com/question/24466000/answer/659429892来源:知乎著作权归作者所有。 阅读全文
posted @ 2020-10-17 12:06 荆棘人 阅读(246) 评论(0) 推荐(0)

导航