fork download
  1. // type.c
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6. int a = 10;
  7. float b = 1.5;
  8. double c = 1.5;
  9.  
  10. printf("a: %d\n",a); // => a: 10
  11. printf("b: %f\n",b); // => b: 1.500000
  12. printf("c: %lf\n",c); // => c: 1.500000
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5436KB
stdin
Standard input is empty
stdout
a: 10
b: 1.500000
c: 1.500000