Search:

Type: Posts; User: Ada Lovelace

Search: Search took 0.09 seconds.

  1. Replies
    22
    Views
    1,184

    Re: returing my value from an array

    You told the compiler the method would return an value:



    And you told the compiler a fib ;)

    Wishes Ada xx
  2. Replies
    22
    Views
    1,184

    Re: returing my value from an array

    I tested out the last given code - with the statements I do indeed get
    the error 'unreachable code' which is obvious as stated previous. When I
    ran the code through the debugger after removing the...
  3. Replies
    22
    Views
    1,184

    Re: returing my value from an array

    Difficult to read due to the formatting, but at a guess, this


    return(lowest);

    Will be executed, hence


    int myLowest = getLowest(yourNumbers);
Results 1 to 3 of 3