samedi 24 août 2019

how this else is getting excuted

I am confused with the executing of both if and else

#include <stdio.h>

int main()
{

    if(!(printf("hello")))
    {

    }
    else
    {
        printf("World");
    }

    return 0;
}

output: helloworld

Aucun commentaire:

Enregistrer un commentaire