delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/18/07:49:44

Date: Thu, 18 May 2000 16:19:45 +0530 (IST)
From: Prashant TR <prashant_tr AT yahoo DOT com>
X-Sender: tr AT vsnl DOT net DOT in
To: Johan Henriksson <jhe AT realsoftware DOT cjb DOT net>
cc: DJGPP mailinglist <djgpp AT delorie DOT com>
Subject: Re: Beginner question...
In-Reply-To: <00db01bfc03b$60e09e40$0500007b@brk>
Message-ID: <Pine.LNX.4.10.10005181618500.1092-100000@vsnl.net.in>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 17 May 2000, Johan Henriksson wrote:

> Can I expect a variable to initialize to 0 if none is set?

No. It contains garbage values.

> I usually just set it to something and don't bother too much but setting a strings[MAXX][MAXY]=zzz;
> is something I don't really know how to do. How can I make zzz vary? Oh well, I'll use a for()-loop
> if zzz can't.

Sorry, I didn't understand this. But maybe this is what you want:

char string[][80] =
{
	"Str 1",
	"Str 2",
	"Str 3",
	"Str 4"
};

Prashant

- Raw text -


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