3 ms·
Nah const is fun int main() { const int world = 42; const const const int const const * const const hello = &world; return 0; } Is a valid
by tick_tock_tick 6y ago
Nah const is fun
int main()
{
const int world = 42;
const const const int const const * const const hello = &world;
return 0;
}
Is a valid program
https://onlinegdb.com/SJcwJrRzd https://onlinegdb.com/SJcwJrRzd
- teddyh 6y agoSure, but those extra “const” do not mean anything, and are apparently ignored by the compiler.