Hello!
I got one code:
How is possible that compiler lets me use array test1[0] or something even if the test1 is pointer?Code:int main() { int *test1,a; test1=&a; test1[0]=5; cout<<test1<<endl; system("PAUSE"); return 0; }
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 11 of 11
Thread: pointer questionThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |