Search:

Type: Posts; User: stef8803

Search: Search took 0.00 seconds.

  1. Thread: & operator

    by stef8803
    Replies
    11
    Views
    1,628

    I was using int[5] as an int*, I thought they...

    I was using int[5] as an int*, I thought they were roughly the same.
    Now I understand.
    Thank you very much.
  2. Thread: & operator

    by stef8803
    Replies
    11
    Views
    1,628

    Ok, here's how the program works: ...

    Ok, here's how the program works:

    m[4]=004040C0
    *v=00000000 v=004040C0
    *v=004040C0 v=0023FF74

    I can't understand why &m[4] doesn't get the address of m[4].
    As you can observe, when calling...
  3. Thread: & operator

    by stef8803
    Replies
    11
    Views
    1,628

    Please run the program first. I know what the &...

    Please run the program first. I know what the & operator should do, but it fails in this case and I wonder why.
    I suppose this happens because m[4] is a kind of a constant, and doesn't have an...
  4. Thread: & operator

    by stef8803
    Replies
    11
    Views
    1,628

    & operator

    Hello,

    I have the following program and I observe that the f function prints different values on its two calls. The correct result is the second one.
    Can anyone explain me please, exactly what...
Results 1 to 4 of 4