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;








2
















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?










share|improve this question















marked as duplicate by paxdiablo c
Users with the  c badge can single-handedly close c questions as duplicates and reopen them as needed.

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 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

















2
















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?










share|improve this question















marked as duplicate by paxdiablo c
Users with the  c badge can single-handedly close c questions as duplicates and reopen them as needed.

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 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













2












2








2









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?










share|improve this question

















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 c
Users with the  c badge can single-handedly close c questions as duplicates and reopen them as needed.

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 c
Users with the  c badge can single-handedly close c questions as duplicates and reopen them as needed.

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 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












  • 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







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












3 Answers
3






active

oldest

votes


















2














It is a pointer to an array of 10 int.



Instead int *ptr[10] is an array of 10 int pointers.






share|improve this answer






























    0














    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.






    share|improve this answer






























      -1














      It's a pointer to an int array of size 10.






      share|improve this answer





























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        It is a pointer to an array of 10 int.



        Instead int *ptr[10] is an array of 10 int pointers.






        share|improve this answer



























          2














          It is a pointer to an array of 10 int.



          Instead int *ptr[10] is an array of 10 int pointers.






          share|improve this answer

























            2












            2








            2







            It is a pointer to an array of 10 int.



            Instead int *ptr[10] is an array of 10 int pointers.






            share|improve this answer













            It is a pointer to an array of 10 int.



            Instead int *ptr[10] is an array of 10 int pointers.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 23 at 10:08









            dariofacdariofac

            386




            386























                0














                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.






                share|improve this answer



























                  0














                  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.






                  share|improve this answer

























                    0












                    0








                    0







                    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.






                    share|improve this answer













                    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.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 23 at 10:13









                    W2aW2a

                    321215




                    321215





















                        -1














                        It's a pointer to an int array of size 10.






                        share|improve this answer



























                          -1














                          It's a pointer to an int array of size 10.






                          share|improve this answer

























                            -1












                            -1








                            -1







                            It's a pointer to an int array of size 10.






                            share|improve this answer













                            It's a pointer to an int array of size 10.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 23 at 10:07









                            DeviatioNDeviatioN

                            9926




                            9926













                                Popular posts from this blog

                                Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                                SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                                은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현