Free a dynamically allocated array of characters

后端 未结 0 1268
离开以前
离开以前 2021-01-19 06:41

So,i allocate some characters like these: scanf("%s",input); input = (char*)realloc(input,(n+1)*sizeof(char)); n++; i have tried doing free(input) but

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