![]() |
|
#1
|
|||
|
|||
Pointers... I need HELP!I am a student in C++ and I am having a problem doing the following:
The array is named "values" 1) Use a "for" statement to print the elements of "array values" by subscripting the pointer to the array. 2)Refer to the fifth element of "values" using array subscript notation, pointer/offset notation with the array name as the pointer, pointer subscript notation and pointer/offset notation. 3)Assuming that "vPtr" points to "values[ 4 ]", what address is referenced by "vPtr -= 4"? What value is stored at that location? |
|||
|
#3
|
||||
|
||||
Re: Pointers... I need HELP!Something like:
CPP / C++ / C Code:
Output: Code:
MxB |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sort an array of structures | sassy99 | C Programming Language | 10 | 15-Feb-2007 08:46 |
| [Tutorial] Function Pointers | aaroncohn | C++ Forum | 4 | 17-Feb-2006 12:33 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 18:36 |
| [Tutorial] Pointers in C (Part I) | Stack Overflow | C Programming Language | 1 | 08-Apr-2005 19:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The