问题详情

答题翼 > 问答 > 求职面试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

以下代码能够编译通过吗 为什么?[C++易] unsigned int const size1


以下代码能够编译通过吗,为什么?[C++易]

unsigned int const size1 = 2;

char str1[ size1 ];

unsigned int temp = 0;

cin $amp;>amp;$gt; temp;

unsigned int const size2 = temp;

char str2[ size2 ];

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题