pencil-icon
Build your own quiz

Computers

University

Image

Pointers in C++

11
plays

10 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    1 pt

    In a C++ Program if

    int a = 5;

    Int *ptr = &a;

    then the cout statement with

    &a, a, ptr

    adrress, Value, Adress

    address, value, value

    all address

    All values

  • 2. Multiple Choice
    1 minute
    1 pt

    In a C++ program,

    int a = 20;

    ptr = &a;

    cout<<ptr<<endl;


    output is:

    address of a

    address of ptr

    value of a

    value and address

  • 3. Multiple Choice
    30 seconds
    1 pt
    Image

    What does this command do?.

    Creates a pointer of type integer that is initially pointing to null.

    Creates a pointer of type integer that is initially pointing to 0.

    Creates a pointer in the heap

    None of the answers are valid

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?