jeudi 13 mai 2021

C language and operators

#include <stdio.h>

int main()
{
  int i=2;

  if(i==3,4)
  { 
      printf("If block");
  }
  else
  {
      printf("Else block");
  }

  return 0;
}

Why is this code returning "If block" ?``

Aucun commentaire:

Enregistrer un commentaire