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

30th Aug 2019, 10:52 AM
Jibin Thomas
Jibin Thomas - avatar
1 Resposta
+ 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...
31st Aug 2019, 7:15 AM
Kireii
Kireii - avatar