Segmentation Fault while assigning int to array

后端 未结 0 1260
南旧
南旧 2021-02-05 00:32

I am try to read a line from a file, separate the chars, and then read them to a malloc\'ed int array. I seem to be getting a segmentation fault when I use atoi to cast the char

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