InterviewSolution
Saved Bookmarks
| 1. |
Can The Curly Brackets { } Be Used To Enclose A Single Line Of Code? |
|
Answer» While CURLY brackets are mainly used to group several lines of CODES, it will still work without error if you used it for a single line. Some programmers prefer this method as a way of organizing codes to make it look clearer, especially in conditional STATEMENTS. While curly brackets are mainly used to group several lines of codes, it will still work without error if you used it for a single line. Some programmers prefer this method as a way of organizing codes to make it look clearer, especially in conditional statements. |
|