POINTER & ARRAY

Explain the difference between a pointer and an array in C++

Show more >
  • $10.00
    ANSWER
    Tutor has posted answer for $10.00. See answer's preview

    * ******* ** *** ** * variable ***** ***** ** *** ******* of another ******** * ******* **** ** ******** ****** working ** it *** ******* **** ** * ******* ******** *********** *** type *var-name; ***** **** ** the *************** **** **** *** ******** ** the name ** *** pointer variable

    Pointers

    ** C++ define * ******* ********* ****** *** ******* ** a variable ** a ******* and ****** *** ***** ** the ******* ********* ** the ******* variable **** is **** ** using ***** ******** * **** ******* *** value of *** ******** ******* ** *** address specified ** *** ******** Example:

    #include

    *****************

    using

    namespace std;

    ***

    **** *** **

    ***

    *** * ***

    //

    ******

    ********

    declaration *** *ip; ** ******* ********* ** *

    *********

    // ***** address of ***

    **

    ******* ********* **** << *********** of var ********* ******** **** ********

    var

    ******** ****** ** ***** the address stored

    in

    ** pointer variable **** ********

    *************

    ******

    in

    ip ********* ******** cout << ** ******** endl; //

    ******

    the value at *** ******* ********* in pointer

    ****

    ******** *********** ** *** *********

    ********

    ****

    ********

    *** << ****** ****** 0; ** When *** code *****

    is

    compiled *** ******** ** ******** ****** something

    **

    follows: Value ** var *********

    20

    *******

    ******

    ** **

    *********

    ***********

    *****

    ** *** ********* *** An ***** ** C++ ** ******* ** number ** ******

    *********

    each ** ***** *** *****

    the

    **** **** **** and ***** ***

    **

    ********** ******* the **** ********

    ****

    ******

    use

    ******** ** ********* memory ********* The ******** array *********** ** **** ************* [lengthofarray] ***** **** specifies *** ******** **** of ******* ***** is ***** ** ** ****** ** *** array ******** *** program below **** ******* an ***** ** **** integers *** ***** all *** elements ** *** ****** Int ******* *** * ********* ** ** ***** all the ******** ** ***

    ******

    Or **** **** i&lt5;i++){ *********************** ************

    Buy

Learn more effectively and get better grades!

Do my homework