2016年4月16日

while(*p2++ = *p1++);详细执行过程

摘要: main() { char *p1 = "name"; char *p2; p2 = (char *)malloc(20); memset(p2,0,20); while(*p2++ = *p1++); printf("p2 = %s \n",p2); } 输出结果为空的原因是:p2指针移动了5个, 阅读全文

posted @ 2016-04-16 21:51 beella 阅读(1362) 评论(0) 推荐(1)

导航