0

Yes, it works 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.

Shathana. S.R. Asked question April 28, 2023