What's a software function?

3 Answers

Relevance
  • John
    Lv 7
    1 month ago

    Here's one from C++:

    // function example

    #include <iostream>

    using namespace std;

    int subtraction (int a, int b)

    {

      int r;

      r=a-b;

      return r;

    }

    int main ()

    {

      int x=5, y=3, z;

      z = subtraction (7,2);

      cout << "The first result is " << z << '\n';

      cout << "The second result is " << subtraction (7,2) << '\n';

      cout << "The third result is " << subtraction (x,y) << '\n';

      z= 4 + subtraction (x,y);

      cout << "The fourth result is " << z << '\n';

    }

  • Lv 7
    1 month ago

    of what?

    .........

  • 1 month ago

    a software's function is its purpose. For example, a project management software package provides a different function than does an email client.

Still have questions? Get your answers by asking now.