![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C面试题
文章平均质量分 68
tiantang46800
这个作者很懒,什么都没留下…
展开
-
年轻人第二道C语言面试题
题目:程序运行结束应该打印什么呢? #include <stdio.h> #include <string.h> int main(int argc,char **argv) { char str1[] = "abcdefghijklmnopqrst"; char str2[] = "123"; strcpy(str2, str1); printf("str1 = %s, str2 = %s\n", str1, str2); } 解析:...原创 2021-01-19 13:10:53 · 274 阅读 · 2 评论 -
年轻人第一道C语言面试题
题目:请问以下例1和例2的str有什么区别? 例1: #include <stdio.h> int main(int argc,char **argv) { char str[]={'h','e','l','l','o',',','w','o','r','d'}; printf("%s\n",str); } 例2: #include <stdio.h> int main(int argc,char **argv) { ...原创 2021-01-15 17:49:20 · 230 阅读 · 1 评论