2 Respostas
+ 3
If you have only single line statement inside a block then no need of curly brackets.
For example:.
if (a > b)
printf("%d", a);
That's enough but for multi line statement you have to use otherwise 2nd line will be considered seperately.
if (a > b) {
printf("%d", b);
printf("%d", a);
}
+ 1
Thank you