Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2005 08:41:30 +0100
From:      Gert Cuykens <gert.cuykens@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: c++
Message-ID:  <ef60af0905021923411a0272b6@mail.gmail.com>
In-Reply-To: <675354920.20050220001731@wanadoo.fr>
References:  <ef60af09050219015116024f83@mail.gmail.com> <5b8472dd5925a0b0b59f15cd9f8e15f3@shire.net> <ef60af0905021915074e5d2929@mail.gmail.com> <675354920.20050220001731@wanadoo.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Feb 2005 00:17:31 +0100, Anthony Atkielski
<atkielski.anthony@wanadoo.fr> wrote:
> >  A=*data
> 
> The contents of the memory location pointed to by data is copied to A.
> 
> >  A=data
> 
> The value of data is copied to A.
> 
> >  A=&data
> 
> The address in memory of data is copied to A.
> 
> --
> Anthony
> 

So if data is declared as a gchar *data; for example, then the value
of data is a memory adress right ? So if A=data; and B=&data; then A
and B are exactly the same result right ?

Now why would anybody want a gchar when a integer is needed ? That is
just making it more complicated then it already is?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef60af0905021923411a0272b6>