From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 07:41:31 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5BB016A4CE for ; Sun, 20 Feb 2005 07:41:31 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65B9E43D48 for ; Sun, 20 Feb 2005 07:41:31 +0000 (GMT) (envelope-from gert.cuykens@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so124710rng for ; Sat, 19 Feb 2005 23:41:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=pDLAea3PSAtd4KtyBdcZ5UPxo5WcfNbZESPbp7howeHuR2AH/ePLdx3FdI/nPUudEqbB7tVIMfnvwPhJLVAJ9XXjwyWyRkbdSTaMutO9TaZrUv3ulPEFWuN9koIo51Y0j2rjZM1j/0/CHA23jlgXtTPahtSr8eVQErl50Vi5MOs= Received: by 10.38.152.42 with SMTP id z42mr190097rnd; Sat, 19 Feb 2005 23:41:30 -0800 (PST) Received: by 10.38.74.23 with HTTP; Sat, 19 Feb 2005 23:41:30 -0800 (PST) Message-ID: Date: Sun, 20 Feb 2005 08:41:30 +0100 From: Gert Cuykens To: freebsd-questions@freebsd.org In-Reply-To: <675354920.20050220001731@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <5b8472dd5925a0b0b59f15cd9f8e15f3@shire.net> <675354920.20050220001731@wanadoo.fr> Subject: Re: c++ X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gert Cuykens List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2005 07:41:31 -0000 On Sun, 20 Feb 2005 00:17:31 +0100, Anthony Atkielski 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?