Skip to main content
Engineering LibreTexts

2.6: More Pointer

  • Page ID
    34651
  • Advanced Pointer Notation

    Consider pointer notation for the two-dimensional numeric arrays. consider the following declaration

    int nums[2][3]  =  { { 16, 18, 20 }, { 25, 26, 27 } };

    In general, nums[ i ][ j ] is equivalent to *(*(nums+i)+j)

    Advanced Pointers and the syntax for implementation

    Yes - This can be a bit confusing...but if you slowly walk through each one it DOES make sense.

    Adapted from:

    "Pointers in C/C++ with Examples" by Abhirav Kariya, Geeks for Geeks is licensed under CC BY 4.0