cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
may i ask the differences btwn int* x[3]
may i ask the differences btwn int* x[3]; and int (*x)[3];
Apr 25, 2013 at 2:00am UTC
ccwhat
(15)
like the title said.
why the parentheses may i ask? :)
Apr 25, 2013 at 2:06am UTC
Zhuge
(4664)
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 UTC
ccwhat
(15)
thanks a lot, zhuge :D
Topic archived. No new replies allowed.