Search:

Type: Posts; User: lesodk

Search: Search took 0.00 seconds.

  1. Thread: Output of code

    by lesodk
    Replies
    5
    Views
    1,346

    Well, i would think that p = p + 1makes the...

    Well, i would think that p = p + 1makes the pointer invalid, this the output
    -----
    tal2 17
    16 tal3
    ??? 17
    ------
    here my ?? means, that i don't know what comes there.
  2. Replies
    6
    Views
    1,117

    Okay. I would think that only the first one is...

    Okay. I would think that only the first one is correct, since a pointer to a base class can be assigned to a pointer to a derived class. The subsequent questions are illegal because the field "speed"...
  3. Replies
    6
    Views
    1,117

    And NO i don't have a c++ compiler. I can't...

    And NO i don't have a c++ compiler. I can't install anything on this machine. However, i am also more interested in the explanation.
  4. Replies
    6
    Views
    1,117

    Hey, this has nothing to do with my homework. I...

    Hey, this has nothing to do with my homework. I have an exam tomorrow and these question are from a exam-set from a earlier year. The solutions are not explained, thus my question here. And as you...
  5. Replies
    6
    Views
    1,117

    Assign. question, please explain

    I have the follow question

    http://img41.imageshack.us/img41/5318/94404328.jpg

    can anyone explain the answer to me.
    I'm not sure what is correct.
  6. Thread: Output of code

    by lesodk
    Replies
    5
    Views
    1,346

    i can't do it from my computer. I just thought...

    i can't do it from my computer. I just thought that it would be very easy to answer the question.

    Thanks!
  7. Thread: Output of code

    by lesodk
    Replies
    5
    Views
    1,346

    Output of code

    Can anyone tell me what the output of this code is suppose to be?
    It is from a test exam



    int tal2= 15;
    int tal3= 17;
    int * p = &tal2;
    int * q = &tal3;
    cout <<tal2 <<" " << *q <<endl;
  8. Replies
    3
    Views
    2,351

    Thanks alot!

    Thanks alot!
  9. Replies
    3
    Views
    2,351

    Memory/Pointer allocation, simple question

    If i run this code
    --------------------------------------


    #include <iostream>

    using namespace std;
    char string1[5];
    char string2[6];
    char string3[7];
Results 1 to 9 of 9