Type of blah is: (non-const) pointer to an array of size 10 containing integer pointers. Type of F is: constant pointer to an array of size 10 of integer pointers. (the pointer is const as required by the standard).
F can't be incremented as the name is bound to the base address in a constant manner. However, blah is a simple non constant pointer and can be incremented. When you pass F (or any array) into a function, a copy of the base address of the array is passed in as a pointer. You can do whatever you want with this pointer. The const to non-const conversion is done because you're passing the pointer BY VALUE and not by reference. The extra information of [10] size is just useful for the compiler to deal with pointer arithmetic and does not invoke constness of the pointer. -- DK Follow me on Twitter: http://twitter.com/divyekapoor -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/-NKj_nmPwOwJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.