delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/15/21:31:39

From: "Jason" <jstewart1 AT ns DOT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: which is more efficient?
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <6LrC6.86$3r6.56986@sapphire.mtt.net>
Date: Mon, 16 Apr 2001 01:17:54 GMT
NNTP-Posting-Host: 142.177.225.99
X-Complaints-To: abuse AT mpoweredpc DOT net
X-Trace: sapphire.mtt.net 987383874 142.177.225.99 (Sun, 15 Apr 2001 22:17:54 ADT)
NNTP-Posting-Date: Sun, 15 Apr 2001 22:17:54 ADT
Organization: MPowered-Subscriber
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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" };


- Raw text -


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