Sample code snippet
const const const int x = 10;
int main()
{}
gets compiled in C but not in C++. Why does it get compiled in C? I thought this would fail in C as well. Never mind.
Which part of the C++ Standard forbids the use of duplicate const and which part of the C standard allows this?
duplicate? or repeated? :P - Nawazconstand I really mean it this time!! - Johnconstthree times, you will summon the ghost of Dykstra to inspect your code and punish you if it doesn't meet his standards. No coder has ever survived the experience. - T.E.D.