Hello please how can i get a pointer value that is in for loop???

Hello please how can i get a pointer value that is in for loop???

The star dereferences a pointer int x = *poionter;

[TEX]Hello please how can i get a pointer value that is in for loop???[/TEX]

[TEX]Why are you talking like this?[/TEX]

can you explain your question a bit?

you can get the value of a pointer by "*".
if

int x=6;
int *y=&x;

cout << *y << endl;    //get the value of pointer

hope that helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.