Pointers print problem in my code help

0 ishwiin doe · September 18, 2015
hi i am new to pointer could you help me .
the problem is when i cout the pointer array variable total i keep getting memory address and not content.
below are my code and sample output.
all suggestions are welcome.


/images/forum/upload/2015-09-18/47ff72bd9fd0d16d65ddb582e84fbf9a.PNG

/images/forum/upload/2015-09-18/13dee63922b6046e79ed1c0fe805bc56.PNG


/images/forum/upload/2015-09-18/b87a801e07cb4e8c1a8ccc7d28f1e609.PNG
/images/forum/upload/2015-09-18/02aa9d6863329541b65e9a1867f8b2d1.PNG

Post a Reply

Replies

Oldest  Newest  Rating
+1 Alan Masimba Walker · September 18, 2015
Make sure you initialise variables before you use them 
  • 1

C++

107,025 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator