I am a computer science student, and some time ago our professor explained us that in C language we can remove curly braces when there's only one statement like:
if (a)
do b
but we can't do something like this:
if(a)
do b
do c
because that would be doing more than one statement.
But it also told us that there's an exception about removing curly braces, something we can't do even if it's only one statement. I did a lot of search but the only thing I found is that I can't do that in a do-while loop, but we are talking about if statements, any help?
Edit: we were also talking about nested if statements, maybe it's about that?