快速的问题
你可以使用free()函数而不必事先调用malloc吗?
EI.
void someFunc( void )
{
char str[6] = {"Hello"};
//some processing here ....
free(str);
}
Run Code Online (Sandbox Code Playgroud)
我没有编译错误,但这是否有效或者它是否正确?
谢谢,
| 归档时间: |
|
| 查看次数: |
8127 次 |
| 最近记录: |