Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualBrother Bob

Posted 30 March 2012 - 05:14 AM

The difference is the type of the expression; Points is a reference to an array (type is GLubyte [N], where N is the number of elements in the array), and &Points is a pointer to an array (type is GLubyte (*)[N]). They are different types, and have different properties when it comes to what other pointer types they decay to or can be implicitly cast into. But as long as they decay to or can be cast into another pointer type, they will likely have the same actual value which is a pointer to the first element of the array.

#3Brother Bob

Posted 30 March 2012 - 05:13 AM

The difference is the type of the expression; Points is a reference to an array (type is GLubyte [N], where N is the number of elements in the array), and &Points is a pointer to an array (type is GLubyte (*)[N]). They are different types, and have different properties when it comes to what other pointer types they decay to or can be implicitly cast into. But as long as they decay to or can be cast into another pointer type, they will likely have the same actual value.

#2Brother Bob

Posted 30 March 2012 - 05:13 AM

The difference is the type of the expression; Points is a reference to an array (type is GLubyte [N]), and &Points is a pointer to an array (type is GLubyte (*)[N]), where N is the number of elements in the array. They are different types, and have different properties when it comes to what other pointer types they decay to or can be implicitly cast into. But as long as they decay to or can be cast into another pointer type, they will likely have the same actual value.

#1Brother Bob

Posted 30 March 2012 - 05:11 AM

The difference is the type of the expression; Points is a reference to an array, and &Points is a pointer to an array. They are different types, and have different properties when it comes to what other pointer types they decay to or can be implicitly cast into. But as long as they decay to or can be cast into another pointer type, they will likely have the same actual value.

PARTNERS