Question from the Language C - Fundamentals test

Write a C program that prints the size of a window in m^2.

Medium

What does the following code display?

#include <stdio.lib>
#define WIDTH_WINDOW 10

int heightWindow= 15;
    
int main() 
{
    #if WIDTH_WINDOW < 10
            printf("the window is too small\n");
    #elif WIDTH_WINDOW >100
            printf("the window is too big\n");
    #else
            int area = heightWindow*WIDTH_WINDOW;
            printf("the window size is %d m^2\n",area);
    #endif
    return 0;
}
Author: KahinaStatus: Published(Update)Question passed 24 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!