Q: 7.7 ΪʲôһЩСĵתmallocķֵΪָͣ


A: ANSI/ISO׼Cvoid*ָ֮ͨǰЩת͵رڲָͼ丳ֵʱ棨ܴʹת

ANSI/ISO׼C£ЩתҪڱʹãҲģμʴ7.7bңöģͷյʽתЩCһֱ͸ͼеģᱻΪһԡ

һ棬һЩԱϲʽÿһתԼ¼Ѿǹÿһȷ˽ʲô飨μʴ17.5ͬCЩתΪijԭ򣬵͵ΪC++ݣvoid*ʽתDZҪ

˳ἰK&R26.57.8.5ڽ˵ЩתҪ̫ˡ

ij̶ֳϣǷʹתһַ⣻μʴ17ڡ

ӣMark BraderĽһ

οH&S Sec. 16.1 pp. 386-7


(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/malloc/cast.html