Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C (https://www.askmehelpdesk.com/forumdisplay.php?f=438)
-   -   Is this statement true or false ? (https://www.askmehelpdesk.com/showthread.php?t=315498)

  • Feb 9, 2009, 09:42 PM
    Mathematica
    is this statement true or false ?
    The following function declaration guarantees the values in the array argument are not changed.

    void function1(int array[ ], int numElements);
  • May 21, 2009, 01:13 AM
    Ribbonic Plague

    Err why don't you have a think about it

    Hint: if I try this:

    array[0] = 4;

    would that change the 1st value of your array?
  • Oct 6, 2009, 09:51 PM
    shihouzhuge
    Quote:

    Originally Posted by Mathematica View Post
    The following function declaration guarantees the values in the array argument are not changed.

    void function1(int array[ ], int numElements);

    You should write the function1 by this:

    Int array[20];
    Void function1(array,int numElements)

    If there's array[],you couldn't use '[]' inside the function()

    I don't know if you get the point...
    Good luck!

  • All times are GMT -7. The time now is 02:42 AM.