Hacker News new | ask | show | jobs
by tick_tock_tick 1936 days 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

1 comments

Sure, but those extra “const” do not mean anything, and are apparently ignored by the compiler.