Hacker News new | past | comments | ask | show | jobs | submit login

Many are aware of ; in C but fewer of ,



The for loop statement is maybe the likeliest place to encounter the comma operator. E.g. if you wanted to increment two values:

  for (x=0, y=100; x<10; x++, y+=20)


Fun fact: , in C is what ; is in ML.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: