
C语言要点
文章平均质量分 71
wangxu_zju_2010
这个作者很懒,什么都没留下…
展开
-
打印字符串的任意一部分
使用printf()函数打印字符串的任意部分,请看下例: #include #include #include int main() { char * source_str = "THIS IS THE SOURCE STRING" ; /* Use printf() to print the first 11 characters of source_str. */转载 2012-04-22 20:31:02 · 3575 阅读 · 1 评论 -
结构的存储分配(c和指针.P206.)
#include #include int main() { struct ALIGN { char a; int b; char c; }; struct ALIGN1转载 2012-04-22 20:51:57 · 739 阅读 · 0 评论