Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:什么叫“超分配”?

Posted by frkstyc at 2005-12-30 14:06:06 on Problem 1008
In Reply To:Re:什么叫“超分配”? Posted by:weapon at 2005-12-30 13:01:32
你不认为使用这5个char以外的空间是种罪过么?

> 就是比如s=(char *)malloc(5*sizeof(char));后,s得到的空间大于5个字符的空间,所以回来输出s的时候后面还有一些东西

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator