Question about pointers

S

Stefan Istrate

I know that "int *p[100]" means 100 pointers to int. But what means
"int (*p)[100]"?
 
T

Tim Love

Stefan Istrate said:
I know that "int *p[100]" means 100 pointers to int. But what means
"int (*p)[100]"?

tpl> c++decl explain 'int *p[100]'
declare p as array 100 of pointer to int

tpl> c++decl explain 'int (*p)[100]'
declare p as pointer to array 100 of int
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top