Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In C it's useful as it allows you to still const a variable when assigning a value conditionally.

  const int x = a ? 1 : 2;


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: