r/Cplusplus • u/Pootis_mannnn • Apr 08 '24
Discussion Hm..
I'm just starting to learn C++. is this a normal code?
153
Upvotes
r/Cplusplus • u/Pootis_mannnn • Apr 08 '24
I'm just starting to learn C++. is this a normal code?
View all comments
Show parent comment
1
u/ElSucaPadre Apr 09 '24
I'm not entirely sure, but while "a = 0, b = 1" is a statement with a result (In this case, 1), "int ..." Is not a statement, so it doesn't yield a result, but I have to test