Suri

Suri

  • NA
  • 113
  • 13k

why is float here behaving as an int data type

Jun 22 2021 10:48 AM

int inSequence(int A, int B, int C){
     
     float f=(B-A+C)/C;
     int i=(B-A+C)/C;
     if(i-f<0) return 0; return 1;
    }     why is float here behaving as an int data type


Answers (4)