Is Both Statement Are Same

R

ranjeet.gupta

Dear All,

Statemen 1. An array of three pointers to chars.
Statemen 2. An array of three char pointers

are the two above statement same ? i.e char *array[3];

Regards
Ranjeet
 
R

Robert W Hand

Dear All,

Statemen 1. An array of three pointers to chars.
Statemen 2. An array of three char pointers

are the two above statement same ? i.e char *array[3];

Yes, I hope that our language has not become that picky. Yikes.
 
J

john_bode

Dear All,

Statemen 1. An array of three pointers to chars.
Statemen 2. An array of three char pointers

are the two above statement same ? i.e char *array[3];

Regards
Ranjeet

I'd say the statements are equivalent. I prefer the first form, but
that's just a personal quirk.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top