fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. float f = 10.2;
  6. int i = int(f);
  7.  
  8. printf("i: %d\n", i);
  9. }
  10.  
  11.  
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
i: 10