This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
2009/11/30 Thomas Martitz <thomas.martitz@student.htw-berlin.de>: > > What address are you taking? "array" already stands for the address of the > first element (and is hence sort of a pointer). I'm not sure you can take > the address of the array name as I think it doesn't have one. > You can, actually: int main() { int a[4]; int (*p)[4] = &a; }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |