fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. /* stałe literałowe */
  4. #define PI 3.1419
  5. int main(){
  6. /* stałe nazwane */
  7. const float pi = 3.14;
  8. //pi=pi+1.0;
  9. //PI=PI+1.0;
  10. printf("%f\n",pi);
  11. printf("%f\n",PI);
  12. system("pause");
  13. return 0;
  14. }
Success #stdin #stdout #stderr 0s 2112KB
stdin
Standard input is empty
stdout
3.140000
3.141900
stderr
sh: 1: pause: not found