Search:

Type: Posts; User: Samaras

Search: Search took 0.10 seconds.

  1. Replies
    19
    Views
    1,517

    Re: passing arguments

    I got the point.Thank you very much for your answers :)
  2. Replies
    19
    Views
    1,517

    Re: passing arguments

    Yes this was stated,but i thought we could make some adjustments.The answer is no..Thank you for your patience :)
  3. Replies
    19
    Views
    1,517

    Re: passing arguments

    I agree.But in C for example you can write


    /*C code*/
    int f(int* a,int* b)
    {
    a=1; b=5;
    }

    int main(void)
  4. Replies
    19
    Views
    1,517

    Re: passing arguments

    Well that's ok for one variable.For more variables?For three for example?Without using an array.Is that possible?
  5. Replies
    19
    Views
    1,517

    Re: passing arguments

    Ok everything is clear now.However a question that just arrived is this : Can i pass an argument as a reference?
    exampe


    public static void bla(int c)
    {
    c=45;
    }
    public static void...
  6. Replies
    19
    Views
    1,517

    Re: passing arguments

    ok,i 'll do so and i will post back tomorrow if i have problems(that is the chance though :D )
  7. Replies
    19
    Views
    1,517

    Re: passing arguments

    What line are you refering to?
  8. Replies
    19
    Views
    1,517

    Re: passing arguments

    I thought of it too.agree :D
  9. Replies
    19
    Views
    1,517

    Re: passing arguments

    I have this in my mind.Tell me if it is wrong,please.The array b and array var are equivalent at the body of f.
    But when i write var = new int[15]; then the system allocates some new memory cells...
  10. Replies
    19
    Views
    1,517

    passing arguments

    Hello,
    below is my code


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package myproject;
Results 1 to 10 of 10