www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/16/05:57:45

Message-ID: <005501c0c65b$7bd2ccb0$6600a8c0@mars>
From: "Johan Henriksson" <jhe AT realsoftware DOT cjb DOT net>
To: <djgpp AT delorie DOT com>
References: <6LrC6.86$3r6 DOT 56986 AT sapphire DOT mtt DOT net>
Subject: Re: which is more efficient?
Date: Mon, 16 Apr 2001 11:56:17 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: djgpp AT delorie DOT com

> Can anyone explain which of these array of strings is more efficient? and
> Why?
> char * cities Ptr [3] = { "Sydney" , "Turo" , "Halifax" };
> or
> char * cities [3][2] = { "Sydney " , "Turo" , "Halifax" };

Ptr??? Isn't that some old 16-bit thingy??



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019