const int i=3; const int j=i; 可行吗,为什么书上说无效

2025-05-23 04:57:16
推荐回答(1个)
回答1:

可以的啊 用一个常量 给另一个常量初始化是可以的
但是
如果i本身不是常量 那就不行了。