🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #214

Re: const T **

#214
From: Scooter McLune
Date: Tue, 14 Apr 1992 21:24
31 lines
943 bytes
donne@imec.be (Werner Donne) writes:

>int
>main(void)

>{

>  const char **a;
>  char **b;

>  a = b;

>  return 0;

>}


>Why is the assignment illegal?

The assignment cannot be done because **a is a constant variable, by your
definition.  If you were to do the assignment "b = a" with the code you
have above, there would be no problem.

Scott.

>Werner.
>-- 
>Quick to judge, quick to anger, slow to understand.
>Ignorance and prejudice and fear walk hand in hand.

>Neil Peart.
Technical Details
Message-ID: <smclewin.703286671@ultrix.ramapo.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!seismo!darwin.sura.net!udel!louie!smclewin
References: <1611@imec.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!seismo!darwin.sura.net!udel!louie!smclewin
From: smclewin@ultrix.ramapo.edu (Scooter McLune)
Newsgroups: comp.std.c
Subject: Re: const T **
Keywords: const
Message-ID: <smclewin.703286671@ultrix.ramapo.edu>
Date: 14 Apr 92 21:24:31 GMT
References: <1611@imec.UUCP>
Sender: usenet@udel.edu (USENET News Service)
Organization: University of Delaware
Lines: 31
Nntp-Posting-Host: ultrix.ramapo.edu