mardi 9 mars 2021

how the evaluation will be done in if condition

here is the program I want to test the functionality of printf for negative numbers

    #include<stdio.h>
    int main(){
    int j=-3,i=1;
    if((printf("%d\n",i))
     <(printf("%d\n",j)))
      printf("%d\n",i);
    else
      printf("%d\n",j);
    return 0;
    }

Aucun commentaire:

Enregistrer un commentaire