0
Where should I use {} ;() appropriately?
I'm coding on Glitch with help of friend, but I always makes errors, I don't know number }or{ require and where to put it, and also (); I need but explaination about this. Thanks btw
1 Respuesta
+ 1
{} at the beggining and end of functions and compound statements
{}; for classes and structs you also add ; after the } at the class’s end
() is used mostly as defined, for example “if(statement) { ... }”, or to show operator priority in expressions like “ x + y * (6 + x)”
There might be more but that’s all I can think of now...