actually, i am trying to get this done in C++. I should have made this in C++, what was i thinking
Saurabh Jain <[EMAIL PROTECTED]> wrote: --- In [email protected], Jim Dougherty <[EMAIL PROTECTED]> wrote: > > > > [email protected] wrote: > > #include <stdio.h> > > > > int add (int x, int y) { > > int z; > > z = x + y; > > return (z); > > } > > main () > > { > > int i, j, k; > > i = 10; > > j = 20; > > k = add(i, j); > > printf ("The value of k is %d\n", k); > > } > > how do you change the above code to the following > > > > + (2, 6) > > - ( 2, 6) > > > > I am not sure what you are looking for. I think he is looking for operator overloading in "C" in some form. Which I am aware of is possible in C++, not in "C". Correct me if I am wrong! ~Saurabh --------------------------------- Got a little couch potato? Check out fun summer activities for kids. [Non-text portions of this message have been removed]
