Can the curly brackets { } be used to enclose a single line of code?

2 years ago
C Programming

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.

0
Sanisha Maharjan
Jan 20, 2022
More related questions

Questions Bank

View all Questions