| delorie.com/archives/browse.cgi | search |
| From: | "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: which is more efficient? |
| Date: | Sun, 15 Apr 2001 21:35:21 -0400 |
| Organization: | Global Crossing Telecommunications |
| Lines: | 25 |
| Sender: | UNKNOWN AT 209-130-219-144 DOT nas1 DOT roc DOT gblx DOT net |
| Message-ID: | <9bdi6a$j4i$1@node17.cwnet.frontiernet.net> |
| References: | <6LrC6.86$3r6 DOT 56986 AT sapphire DOT mtt DOT net> |
| NNTP-Posting-Host: | 209-130-219-144.nas1.roc.gblx.net |
| X-Trace: | node17.cwnet.frontiernet.net 987384842 19602 209.130.219.144 (16 Apr 2001 01:34:02 GMT) |
| X-Complaints-To: | abuse AT frontiernet DOT net |
| NNTP-Posting-Date: | 16 Apr 2001 01:34:02 GMT |
| 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 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"Jason" <jstewart1 AT ns DOT sympatico DOT ca> wrote in message
news:6LrC6.86$3r6 DOT 56986 AT sapphire DOT mtt DOT net...
> 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" };
what is your criteria of efficiency?
btw, the two don't do same thing, do they?
Good Luck
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |