I recently made a syntax mistake by writing this:
b = (float)a*0,1;
instead of:
b = (float)a*0.1;
I am surprised to find out that the first line don’t even put a compilation error. I am even more confuse to see that the following line produce compilation error:
float b = (float)a*0,1;
Can someone explain me why the third line is a syntax error but not the first (in fact it is) ?
New contributor
MattWeb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.