Assigning a string of characters to a char array

前端 未结 6 881
半阙折子戏
半阙折子戏 2020-12-03 03:14

I Want to know why the first statements works and why not second one in c++

char a[10]=\"iqbal\";  // it works

a=\"iqbal\"; // does not work 
6条回答
提交回复
热议问题