0 votes
in C Plus Plus by

) Is it possible to use curly brackets ({}) to enclose a single line code in C program?

1 Answer

0 votes
by

Yes, it is working without any error. Some programmers like to use this to organize the code. But the main purpose of curly brackets is to group several lines of codes.

Related questions

0 votes
asked Jan 7 in C Plus Plus by GeorgeBell
0 votes
asked Nov 11, 2022 in Power System by Robin
...