+ 3

What happens if I place only a semicolon on a line after a statement??

29th Aug 2017, 9:17 PM
Ifiokobong Akpan
Ifiokobong Akpan - avatar
4 ответов
+ 4
White space doesn't matter in Java or C++ or PhP. As long as it doesn't separate a keyword/name/value, it's fine.
29th Aug 2017, 11:56 PM
Rrestoring faith
Rrestoring faith - avatar
+ 3
makes no diffrence
29th Aug 2017, 10:07 PM
D_Stark
D_Stark - avatar
+ 1
I'm not sure what you mean, please can you post an example?
29th Aug 2017, 9:42 PM
Daniel Stanciu
Daniel Stanciu - avatar
+ 1
Nothing eg: if (test) ; is compilled and nothing happens .
31st Aug 2017, 8:04 AM
Horia Druliac
Horia Druliac - avatar