| | |
Difference between *p[5] and (*p)[5]?
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 32
Reputation:
Solved Threads: 0
0
#2 Nov 6th, 2009
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: 67
Reputation:
Solved Threads: 3
0
#3 Nov 6th, 2009
•
•
•
•
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
Views: 275 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C
#include * array arrays asterisks binarysearch calculate changingto char cm command copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv fflush file fork forloop framework functions getlasterror givemetehcodez grade graphics gtkwinlinux hacking hardware histogram homework inches include incrementoperators input iso kernel keyboard km lazy linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft motherboard mqqueue mysql number opendocumentformat opensource overwrite owf pattern pdf performance pointer pointers posix problem probleminc process program programming radix recursion recv research reversing scanf scripting segmentationfault sequential socket socketprograming spoonfeeding standard string structures student systemcall testing threads turboc unix user variable voidmain() wab whythiscodecausesegmentationfault windowsapi





