Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: What does char **ch mean? Message-ID: <16071@smoke.brl.mil> Date: 6 May 91 20:52:53 GMT Article-I.D.: smoke.16071 References: <1991May4.062007.3264@weyrich.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 16 In article <1991May4.062007.3264@weyrich.UUCP> orville@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; No, they're not at all equivalent. They might not even have the same size. >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. Correct. >I think that this would be equivalent to the declaration char *ch[] >rather than what the study guide says. The only place where char**ch and char*ch[] are equivalent is as a declaration of a function parameter.