我现在开始学习C。我想知道为什么我会收到警告。我声明了一个二维char数组,但是为什么不允许使用字符“d”
?
char array[3][3] = {{1,"d",3},{3,2,1},{2,1,3}};
最佳答案
将“d”替换为“d”
“d”是一个字符
“d”是一个字符串
关于c - "initialization makes integer from pointer without a cast"数组初始化中逐渐减弱,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30534329/