以下代码能够编译通过吗?为什么

 unsigned int const size1 = 2; 
 char str1[size1]; 
 unsigned int temp = 0; 
 cin >> temp; 
 unsigned int const size2 = temp; 
 char str2[size2]; 

答:能;