摘要: 一、指针常见问题#include "stdafx.h"#include <stdio.h>#include<stdlib.h>#include <string.h>void fucntion(char* b){ b=(char*)malloc(4); strcpy(b,"abc"); printf("In function:%s\n",b);}int main(int argc, char* argv[]){ char* a=NULL; fucntion(a); printf("In ma 阅读全文
posted @ 2012-04-16 19:29 windlaughing 阅读(560) 评论(3) 推荐(1) 编辑