What does char **ch mean?

Tom Armistead toma at swsrv1.cirr.com
Sun May 5 03:22:34 AEST 1991


In article <1991May4.062007.3264 at weyrich.UUCP> orville at weyrich.UUCP (Orville R. Weyrich) writes:
>I am studying for a C language exam, and a study guide I am using states 
>that the declaration char **ch; is equivalent to char *ch;
>
>I am having difficulty understanding this. My interpretation of the
>declaration char **ch is that we have a pointer to a pointer to a char.
>I think that this would be equivalent to the declaration char *ch[]
>rather than what the study guide says. 
>
>Am I missing something obvious?
>
>Thanks,
>
>orville.
>
>--------------------------------------           ******************************
>Orville R. Weyrich, Jr.                          Certified Systems Professional
>Internet: orville%weyrich at uunet.uu.net             Weyrich Computer Consulting
>Voice:    (602) 391-0821                         POB 5782, Scottsdale, AZ 85261
>Fax:      (602) 391-0023                              (Yes! I'm available)
>--------------------------------------           ******************************

Nope, your not missing anything.  Your 'study guide' is wrong!

Tom
-- 
Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx  75040
===========================================================================
toma at swsrv1.cirr.com                {egsner,letni,ozdaltx,void}!swsrv1!toma



More information about the Comp.lang.c mailing list