Malloc error - can't assign to variable sized object

后端 未结 0 1156
甜味超标
甜味超标 2021-02-07 11:26

For the malloc statement below, I am failing to initialize a variable-sized object

int textsize = BUF_SIZE;
  char *lines[textsize] = malloc(sizeof(char *) * text         


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