fork download
  1. // #include <stdio.h>
  2. // int main()
  3. // {
  4. // int a = 0;
  5. // printf("%zu\n",sizeof(int));
  6. // printf("%zu\n",sizeof(a));
  7. // return 0;
  8. // }
  9. // #include <stdio.h>
  10. // int num = 0;
  11. // int main()
  12. // {
  13. // scanf("%d",&num);
  14. // printf("%d",num);
  15. // return 0;
  16. // }
  17.  
  18. // #include <stdio.h>
  19. // int main()
  20. // {
  21. // printf("%d\n",10 / 2);//5
  22. // printf("%f\n",10.0 / 2);//5.000000
  23. // printf("%f\n",10 / 2.0);//5.000000
  24. // printf("%f\n",10.0 / 2.0);//5.000000
  25. // printf("%d\n",10 / 4);//2
  26. // printf("%f\n",10.0 / 4);//2.500000
  27. // printf("%f\n",10 / 4.0);//2.500000
  28. // printf("%f\n",10.0 / 4.0);//2.500000
  29. // return 0;
  30. // }
  31. // #include <stdio.h>
  32. // int main()
  33. // {
  34. // int a = 20;
  35. // float b = 100.0f;
  36. // printf("%f\n",a / b);
  37. // printf("%d\n",a / b);
  38. // return 0;
  39. // }
  40.  
  41. // #include <stdio.h>
  42. // int main()
  43. // {
  44. // printf("%d\n",11 % 5);
  45. // printf("%d\n",11 % -5);
  46. // printf("%d\n",-11 % 5);
  47. // printf("%d\n",-11 % -5);
  48. // printf("%d\n",11 / 5);
  49. // return 0;
  50. // }
  51.  
  52. // #include <stdio.h>
  53. // int main()
  54. // {
  55. // int a = 0;
  56. // int b = 0;
  57. // int c = 3.14;
  58. // int d = (int)3.14;//强行转换类型
  59. // printf("%d %d\n",b = a++,a);
  60. // a = 0;
  61. // b = 0;
  62. // printf("%d %d\n",b = ++a,a);
  63. // printf("%d\n",c);
  64. // printf("%d\n",d);
  65. // return 0;
  66. // }
  67.  
  68. // #include <stdio.h>
  69. // int main()
  70. // {
  71. // int a = 5;
  72. // int b = 2;
  73. // double result1 = a / b;
  74. // double result2 = (double)a / b;
  75. // printf("%f\n",result1);
  76. // printf("%f\n",result2);
  77. // return 0;
  78. // }
  79.  
  80.  
  81. #include <stdio.h>
  82. int main()
  83. {
  84. char Zhangsan[] = "Zhangsan";
  85. char Lisi[] = "Lisi";
  86. printf("%s says %s will come at %d o'clock\n",Zhangsan,Lisi,10);
  87. printf("%s says there are %d geniu\n",Lisi);
  88. return 0;
  89. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Zhangsan says Lisi will come at 10 o'clock
Lisi says there are 0 geniu