What is the output of the following C program?
#include <stdio.h>
int main(void) {
int x = 3, count = 0;
if (x > 5)
count++;
count += 10;
printf("%d\n", count);
return 0;
}
Without braces only the first statement belongs to the if. count += 10; always runs, despite its indentation. Compilers warn (-Wmisleading-indentation); always use braces.