memory_free--test
来源:互联网 发布:网络脆弱性扫描 编辑:程序博客网 时间:2024/06/14 07:32
#include <stdio.h>
#include <stdlib.h>
int * returnint()
{
int* point = (int*)malloc(sizeof(int));
*point = 294969;
printf("point is %d\n", *point);
return point;
}
int main()
{
int *p;
p = returnint();
printf("the returnint is %d\n",*p);
free(p);
return 0;
}
#include <stdlib.h>
int * returnint()
{
int* point = (int*)malloc(sizeof(int));
*point = 294969;
printf("point is %d\n", *point);
return point;
}
int main()
{
int *p;
p = returnint();
printf("the returnint is %d\n",*p);
free(p);
return 0;
}
- memory_free--test
- test
- test
- test
- test
- test
- test
- test
- Test
- test
- Test
- test
- test
- test
- test
- test
- test
- test
- 关于AIX小型机 Sybase ASE 12.5数据库的惊险瞬间
- collection接口之Arraylist,vector,Linkedlist
- Bundler
- Linux Commands for Beginners-- Echo And Creating Variables
- adpcm的压缩和解压缩实现
- memory_free--test
- find_new_reaper
- 2012-05-14 22:12 xheditor使用方法
- C#实现浏览文件后直接显示图片
- POJ1661——Help Jimmy(关于动态规划)
- 清理/tmp目录下文件
- mini2440 移植linux2.6.30.10 及yaffs2文件系统 2011-03-12 10:17:18
- Delph cxGrid操作
- 一种实现Win32消息处理处理函数的新方法 - 基于Thunk实现的类成员消息处理函数