Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C++ (https://www.askmehelpdesk.com/forumdisplay.php?f=439)
-   -   The following function will work with any size integer array. Void functio (https://www.askmehelpdesk.com/showthread.php?t=470773)

  • May 14, 2010, 12:20 PM
    amrelgohary
    The following function will work with any size integer array. Void functio
    The following function will work with any size integer array.

    void function1(int array[ ], int numElements);
  • May 14, 2010, 12:21 PM
    amrelgohary

    The following function will work with any size integer array.

    void function1(int array[ ], int numElements);
  • May 14, 2010, 12:24 PM
    amrelgohary

    Given the following function definition,
    void shift(int& a, int&b)
    {
    a = b;
    b = a;
    }
    what is the output after the following function call?
    int first = 0, second = 10;
    shift(first, second);
    cout << first <<" "<< second << endl;
  • May 14, 2010, 12:26 PM
    amrelgohary

    Given the following function definition,
    void shift(int& a, int&b)
    {
    a = b;
    b = a;
    }
    what is the output after the following function call?
    int first = 0, second = 10;
    shift(first, second);
    cout << first <<" "<< second << endl;

  • All times are GMT -7. The time now is 01:40 PM.