CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vincegata

Search: Search took 0.01 seconds.

  1. Re: A pointer to an array: int* p = arr; vs. int (*p2)[10] = &arr; ?

    I see, thanks guys for all responses.
  2. [RESOLVED] A pointer to an array: int* p = arr; vs. int (*p2)[10] = &arr; ?

    Hello,



    int arr[10];
    int* p = arr;
    int (*p2)[10] = &arr;


    So, pointer p is a pointer to an array, I can use it to access elements of arr as in *(p+5).
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured