Question from the Language C - Fundamentals test

How to instantiate the variable "single" to see the message "you are a heart to take"?

Medium

How should we instantiate the variable “single” to see the message “you are a heart to take”?

#include <stdio.h>

int main() 
    {
        int single;
        if(single)
        {
            printf("you are a heart to take\n");
        } 
        else
        {
        printf("your heart is taken\n");
        }
        return 0;
    } 

Author: KahinaStatus: Published(Update)Question passed 77 times
Edit
0
Community Evaluations
developer avatar
Antoine
13/12/2023
Pour `celibataire = true`, c'est ambigu car les booléens ne sont pas implémentés de base en C donc on ne sait pas si on considère que <stdbool.h> est inclus. Pour moi s'il n'y a aucune indication cela signifie que les booléens sont considérés comme implémentés.