carysu@126.com

carysu@126.com
posts - 11, comments - 0, trackbacks - 0, articles - 0

c与 指针

Posted on 2011-10-16 10:45 susu 阅读(219) 评论(0)  编辑 收藏 引用
 1
 2#include<stdio.h>
 3#include<setjmp.h> 
 4
 5void get(int **p)
 6{
 7    int *pointer;
 8    pointer = (int *)malloc(sizeof(int* 10);
 9    strcpy(pointer,"hello\n");
10    *= pointer;
11}

12
13
14void main()
15{
16    int *pt = NULL;
17    get(&pt);
18    printf("%s", pt);
19}

20
21

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理