| | |
Difference between *p[5] and (*p)[5]?
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 28
Reputation:
Solved Threads: 0
0
#2 22 Days Ago
It turns out that this can be done and that
int (*p1d)[5];
is the proper declaration, i.e. p1d here is a pointer to an array of 5 integers just as it was
under the declaration using the Array type. Note that this is different from
int *p1d[5];
which would make p1d the name of an array of 5 pointers to type int.
int (*p1d)[5];
is the proper declaration, i.e. p1d here is a pointer to an array of 5 integers just as it was
under the declaration using the Array type. Note that this is different from
int *p1d[5];
which would make p1d the name of an array of 5 pointers to type int.
•
•
Join Date: Oct 2009
Posts: 46
Reputation:
Solved Threads: 2
0
#3 22 Days Ago
•
•
•
•
which would make p1d the name of an array of 5 pointers to type int.
C Syntax (Toggle Plain Text)
int *p1d[5];
![]() |
Similar Threads
- what is the difference between regular and 64 bit edition (Windows NT / 2000 / XP)
- Should replacing a 15" laptop screen with 14.1" make a difference? (Monitors, Displays and Video Cards)
- 56k and 56k/v90 difference? (Windows 95 / 98 / Me)
- date difference in c++ (C++)
- Drawbacks And Difference (C)
- "difference patching" help (C)
- The difference between functions and templates? (C++)
- Difference (Web Browsers)
Other Threads in the C Forum
- Previous Thread: Array counter
- Next Thread: classes
| Thread Tools | Search this Thread |
* ansi api array arrays binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile creafecopyofanytypeoffileinc createcopyoffile createprocess() directory dynamic execv fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez grade graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o ide inches include infiniteloop input intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft mysql oddnumber open opendocumentformat openwebfoundation pdf pointer posix power program programming pyramidusingturboccodes radix read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi





