Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
082349872349872
· 2y ago · 0 comments
Many are aware of ; in C but fewer of ,
Comments
[–]
pavlov
2y ago
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)
[–]
GrumpySloth
2y ago
Fun fact: , in C is what ; is in ML.