pointer to array v/s array of pointers
From: mann! (manan.kathuria_at_gmail.com)
Date: 02/25/05
- Next message: Roger Leigh: "Re: getopt_long problem"
- Previous message: Joona I Palaste: "Re: ANSI C Newbie Question"
- Next in thread: Ben Pfaff: "Re: pointer to array v/s array of pointers"
- Reply: Ben Pfaff: "Re: pointer to array v/s array of pointers"
- Reply: E. Robert Tisdale: "Re: pointer to array v/s array of pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Feb 2005 11:08:40 -0800
hi
can some one please explain how
int (*x)[10] declares a pointer to an array
and
int *x[10] declares an array of pointers?
...i just cant figure out how to interpret [] in an expression so if
you could put in a few lines about that too..
thanks in anticipation
Manan
- Next message: Roger Leigh: "Re: getopt_long problem"
- Previous message: Joona I Palaste: "Re: ANSI C Newbie Question"
- Next in thread: Ben Pfaff: "Re: pointer to array v/s array of pointers"
- Reply: Ben Pfaff: "Re: pointer to array v/s array of pointers"
- Reply: E. Robert Tisdale: "Re: pointer to array v/s array of pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|