may i ask the differences btwn int* x[3]; and int (*x)[3];

Apr 25, 2013 at 2:00am
like the title said.
why the parentheses may i ask? :)
Apr 25, 2013 at 2:06am
IIRC, int* x[3] declares an array of 3 pointers-to-int, while int (*x)[3] declares a pointer to an array of 3 ints.
Apr 25, 2013 at 2:09am
thanks a lot, zhuge :D
Topic archived. No new replies allowed.