dimanche 7 février 2021

why does this code print hello as much as i know it should print hello world bcz i is not equal to 11 [closed]

#include <stdio.h>
int main()
{
int i=10;
if (i=11)
   printf("Hello");
else
   printf("hello world");
return 0;
}

I am new at coding and I face this issue and I am totally confused now. can someone answer me.

Aucun commentaire:

Enregistrer un commentaire