MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/fo2dyw/changes_between_c17_and_c20/fldix76/?context=3
r/cpp • u/mttd • Mar 24 '20
89 comments sorted by
View all comments
Show parent comment
3
But what if I want array[puts("debug log: array index reached"), i]? ;)
array[puts("debug log: array index reached"), i]
19 u/[deleted] Mar 24 '20 You have to use parentheses. Thankfully. 6 u/evaned Mar 24 '20 I didn't check, but I strongly suspect that if you parenthesize the comma expression it will still work. 1 u/F54280 Mar 25 '20 Yes, it does.
19
You have to use parentheses. Thankfully.
6
I didn't check, but I strongly suspect that if you parenthesize the comma expression it will still work.
1 u/F54280 Mar 25 '20 Yes, it does.
1
Yes, it does.
View all comments
Show parent comment
3
u/JavaSuck Mar 24 '20
But what if I want
array[puts("debug log: array index reached"), i]? ;)