char *p = malloc(10);
我的编译器报错说“无效的初始化”,或其它的。
A: 这是一个静态或非局部变量声明吗?函数调用只允许用于初始化自动变量(即是,对非静态、局部变量)。
(This Chinese translation isn't confirmed by the author, and it isn't for profits.)
Translator : jhlicc@gmai1.c0m
Origin : http://www.c-faq.com/decl/fcninit.html