GetMemory(char **p, int num)
来源:互联网 发布:淘宝哪家眼镜店好 编辑:程序博客网 时间:2024/06/07 09:21
#include<stdio.h>#include<stdlib.h>#include<string.h>void GetMemory(char **p, int num){*p = (char *)malloc(num); } void Test(void){ char *str = NULL;GetMemory(&str, 100); strcpy(str, "hello\n"); printf(str); free(str); } //请问运行Test 函数会有什么样的结果?void main(){Test();}/*helloPress any key to continue*/
- GetMemory(char **p, int num)
- get_memory(char* p,int num)
- get_memory(char* p,int num) 续
- char *GetMemory3(int num)的问题
- char *(*c[10])(int **p);
- int strncmp ( const char * str1, const char * str2, size_t num );
- char (*(*p[3])( int ))[5] 等等一系列
- { char *p,s[6];int n
- char (*(*p[3])( int ))[5] 等等一系列
- char (*(*p[3])( int ))[5] 问题剖析
- char *p = NULL,int *p = NULL的区别
- p->num,与p.num的区别
- static_cast、dynamic_cast、reinterpret_cast和const_cast之间的区别,char int *p,int const*p
- [leetcode] sqrt(int num)
- 解读复杂定义char *(*c[10])(int **p);
- c/c++ int atoi(char *p)的实现
- 关于void GetMemory(*p)与void* GetMemory()的讨论
- char*p char p [] char* p[]
- 使用Silverlight Toolkit中的主题(Theme)
- 计算机视觉、模式识别、机器学习常用牛人主页链接
- 为arm linux内核添加新的系统调用
- 解决win7输入法不见了,5种解决方法
- Android图片处理(Matrix,ColorMatrix)
- GetMemory(char **p, int num)
- ios之沙盒路径
- SqlHelper.cs
- 程序员何必难为程序员
- 原型(Prototype)设计模式
- onsubmit及调用函数实现函数校验(33)
- Windows 控制台注册表工具 Reg
- Linux 进程间通讯之有名管道方式
- Eboot之函数BootloaderMain函数分析