What does the following declaration means? [duplicate]How do you read C declarations?What is the difference between #include <filename> and #include “filename”?What does “static” mean in C?What is the effect of extern “C” in C++?What is the difference between a definition and a declaration?How does free know how much to free?Improve INSERT-per-second performance of SQLite?What does the question mark and the colon (?: ternary operator) mean in objective-c?What does the C ??!??! operator do?Why are elementwise additions much faster in separate loops than in a combined loop?What is “:-!!” in C code?
Passport stamps art, can it be done?
Why should password hash verification be time constant?
What's the "magic similar to the Knock spell" referenced in the Dungeon of the Mad Mage adventure?
Why do Thanos' punches not kill Captain America or at least cause some mortal injuries?
Pre-1993 comic in which Wolverine's claws were turned to rubber?
Are there non-military uses of 20%-enriched Uranium?
Why is PerfectForwardSecrecy considered OK, when it has same defects as salt-less password hashing?
We are two immediate neighbors who forged our own powers to form concatenated relationship. Who are we?
Is every story set in the future "science fiction"?
Is it bad writing or bad story telling if first person narrative contains more information than the narrator knows?
Best species to breed to intelligence
Names of the Six Tastes
Are there variations of the regular runtimes of the Big-O-Notation?
What is the name of meteoroids which hit Moon, Mars, or pretty much anything that isn’t the Earth?
Why was wildfire not used during the Battle of Winterfell?
When do you stop "pushing" a book?
Why did Captain America age?
Is it a good idea to copy a trader when investing?
What can cause an unfrozen indoor copper drain pipe to crack?
How to efficiently lower your karma
Cropping a message using array splits
What do "KAL." and "A.S." stand for in this inscription?
How is CoreiX like Corei5, i7 is related to Haswell, Ivy Bridge?
No such column 'DeveloperName' on entity 'RecordType' after Summer '19 release on sandbox
What does the following declaration means? [duplicate]
How do you read C declarations?What is the difference between #include <filename> and #include “filename”?What does “static” mean in C?What is the effect of extern “C” in C++?What is the difference between a definition and a declaration?How does free know how much to free?Improve INSERT-per-second performance of SQLite?What does the question mark and the colon (?: ternary operator) mean in objective-c?What does the C ??!??! operator do?Why are elementwise additions much faster in separate loops than in a combined loop?What is “:-!!” in C code?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
This question already has an answer here:
How do you read C declarations?
10 answers
I'm new to programming world and i'm studying about pointers and array. and i read this code on a website. what does this line of mean?
int(*ptr)[10];
Is it a pointer or an array of size 10?
c
marked as duplicate by paxdiablo
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 23 at 10:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
show 2 more comments
This question already has an answer here:
How do you read C declarations?
10 answers
I'm new to programming world and i'm studying about pointers and array. and i read this code on a website. what does this line of mean?
int(*ptr)[10];
Is it a pointer or an array of size 10?
c
marked as duplicate by paxdiablo
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 23 at 10:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2
Both. It's a pointer to an array of size 10. And converselyint* ptr[10]
would be an array (of size 10) of pointers.
– john
Mar 23 at 10:04
1
Also abandon the site you are reading.
– Michael Chourdakis
Mar 23 at 10:05
2
A handy website for some of this: cdecl.org
– Tas
Mar 23 at 10:05
1
Removed the C++ tag since no-one in their right mind would use this :-) Also closed as dupe since there is a perfectly good canonical question on how to read C types.
– paxdiablo
Mar 23 at 10:14
1
The ``Clockwise/Spiral Rule''
– Ayxan
Mar 23 at 10:24
|
show 2 more comments
This question already has an answer here:
How do you read C declarations?
10 answers
I'm new to programming world and i'm studying about pointers and array. and i read this code on a website. what does this line of mean?
int(*ptr)[10];
Is it a pointer or an array of size 10?
c
This question already has an answer here:
How do you read C declarations?
10 answers
I'm new to programming world and i'm studying about pointers and array. and i read this code on a website. what does this line of mean?
int(*ptr)[10];
Is it a pointer or an array of size 10?
This question already has an answer here:
How do you read C declarations?
10 answers
c
c
edited Mar 23 at 10:13
paxdiablo
648k17912691695
648k17912691695
asked Mar 23 at 10:02
Umer ArifUmer Arif
22411
22411
marked as duplicate by paxdiablo
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 23 at 10:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by paxdiablo
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 23 at 10:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2
Both. It's a pointer to an array of size 10. And converselyint* ptr[10]
would be an array (of size 10) of pointers.
– john
Mar 23 at 10:04
1
Also abandon the site you are reading.
– Michael Chourdakis
Mar 23 at 10:05
2
A handy website for some of this: cdecl.org
– Tas
Mar 23 at 10:05
1
Removed the C++ tag since no-one in their right mind would use this :-) Also closed as dupe since there is a perfectly good canonical question on how to read C types.
– paxdiablo
Mar 23 at 10:14
1
The ``Clockwise/Spiral Rule''
– Ayxan
Mar 23 at 10:24
|
show 2 more comments
2
Both. It's a pointer to an array of size 10. And converselyint* ptr[10]
would be an array (of size 10) of pointers.
– john
Mar 23 at 10:04
1
Also abandon the site you are reading.
– Michael Chourdakis
Mar 23 at 10:05
2
A handy website for some of this: cdecl.org
– Tas
Mar 23 at 10:05
1
Removed the C++ tag since no-one in their right mind would use this :-) Also closed as dupe since there is a perfectly good canonical question on how to read C types.
– paxdiablo
Mar 23 at 10:14
1
The ``Clockwise/Spiral Rule''
– Ayxan
Mar 23 at 10:24
2
2
Both. It's a pointer to an array of size 10. And conversely
int* ptr[10]
would be an array (of size 10) of pointers.– john
Mar 23 at 10:04
Both. It's a pointer to an array of size 10. And conversely
int* ptr[10]
would be an array (of size 10) of pointers.– john
Mar 23 at 10:04
1
1
Also abandon the site you are reading.
– Michael Chourdakis
Mar 23 at 10:05
Also abandon the site you are reading.
– Michael Chourdakis
Mar 23 at 10:05
2
2
A handy website for some of this: cdecl.org
– Tas
Mar 23 at 10:05
A handy website for some of this: cdecl.org
– Tas
Mar 23 at 10:05
1
1
Removed the C++ tag since no-one in their right mind would use this :-) Also closed as dupe since there is a perfectly good canonical question on how to read C types.
– paxdiablo
Mar 23 at 10:14
Removed the C++ tag since no-one in their right mind would use this :-) Also closed as dupe since there is a perfectly good canonical question on how to read C types.
– paxdiablo
Mar 23 at 10:14
1
1
The ``Clockwise/Spiral Rule''
– Ayxan
Mar 23 at 10:24
The ``Clockwise/Spiral Rule''
– Ayxan
Mar 23 at 10:24
|
show 2 more comments
3 Answers
3
active
oldest
votes
It is a pointer to an array of 10 int
.
Instead int *ptr[10]
is an array of 10 int
pointers.
add a comment |
https://stackoverflow.com/a/89100/5596981
Therefore it's a pointer to an array.
For another example, in int main(int argc, char* argv[])
, argv
is an array of pointers.
add a comment |
It's a pointer to an int array of size 10.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
It is a pointer to an array of 10 int
.
Instead int *ptr[10]
is an array of 10 int
pointers.
add a comment |
It is a pointer to an array of 10 int
.
Instead int *ptr[10]
is an array of 10 int
pointers.
add a comment |
It is a pointer to an array of 10 int
.
Instead int *ptr[10]
is an array of 10 int
pointers.
It is a pointer to an array of 10 int
.
Instead int *ptr[10]
is an array of 10 int
pointers.
answered Mar 23 at 10:08
dariofacdariofac
386
386
add a comment |
add a comment |
https://stackoverflow.com/a/89100/5596981
Therefore it's a pointer to an array.
For another example, in int main(int argc, char* argv[])
, argv
is an array of pointers.
add a comment |
https://stackoverflow.com/a/89100/5596981
Therefore it's a pointer to an array.
For another example, in int main(int argc, char* argv[])
, argv
is an array of pointers.
add a comment |
https://stackoverflow.com/a/89100/5596981
Therefore it's a pointer to an array.
For another example, in int main(int argc, char* argv[])
, argv
is an array of pointers.
https://stackoverflow.com/a/89100/5596981
Therefore it's a pointer to an array.
For another example, in int main(int argc, char* argv[])
, argv
is an array of pointers.
answered Mar 23 at 10:13
W2aW2a
321215
321215
add a comment |
add a comment |
It's a pointer to an int array of size 10.
add a comment |
It's a pointer to an int array of size 10.
add a comment |
It's a pointer to an int array of size 10.
It's a pointer to an int array of size 10.
answered Mar 23 at 10:07
DeviatioNDeviatioN
9926
9926
add a comment |
add a comment |
2
Both. It's a pointer to an array of size 10. And conversely
int* ptr[10]
would be an array (of size 10) of pointers.– john
Mar 23 at 10:04
1
Also abandon the site you are reading.
– Michael Chourdakis
Mar 23 at 10:05
2
A handy website for some of this: cdecl.org
– Tas
Mar 23 at 10:05
1
Removed the C++ tag since no-one in their right mind would use this :-) Also closed as dupe since there is a perfectly good canonical question on how to read C types.
– paxdiablo
Mar 23 at 10:14
1
The ``Clockwise/Spiral Rule''
– Ayxan
Mar 23 at 10:24