Example 17

What are the run-time problems here?
    #include <stdio.h>

    add(double p1, p2) {
        return p1 + p2;
      }

    double add2(double p1, p2) {
        return p1 + p2;
      }

    main() { 

        double a = 13.4, b = 67.99, c;

        c = add(a,b);
        printf("Add - %f \n",c);

        c = add2(a,b);
        printf("Add2 - %f \n",c);
      }


...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_course_crash_in_c/_reml_grp/practical_c.reml_lib
On: 3/3/2003 at 16:27:16
Options: reml2 -i noindex -l long -o html -p multiple