C语言常见错误

  • [Error] ld returned 1 exit status//scanf函数忘记写&
  • printf(“%.1f\n”, b);//保留一位小数
  • a = abs(a)可以将负数转为正数