After creating an array through dynamic allocation, a problem occurs when changing the memory size through realloc in C

前端 未结 0 454
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 09:37

I am practicing C language.

I wanted to use dynamic allocation to use only the size of the string I input as memory and check whether the input string was properly saved.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题