Answered You can buy a ready-made answer or pick a professional tutor to order an original one.

QUESTION

POINTER & ARRAY

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

Show more >
ANSWER

Tutor has posted answer for $10.00. See answer's preview

$10.00

* ******* ** *** ** * 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++){ *********************** ************

LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question