Question from the Language C - Fundamentals test

Write a C program that displays 'You pass !' if the note is greater than or equal to 10.

Medium

What about the following code?

#define AVERAGE(note) if (note >= 10) \
printf("You pass !\n");
int main()
{
        AVERAGE(15);
        return 0;
}
Author: KahinaStatus: PublishedQuestion passed 55 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!