From: wilmer AT server DOT minilinux DOT org (Wilmer van der Gaast) Newsgroups: comp.os.msdos.djgpp Subject: Re: int sizes Date: 15 Jan 2000 00:09:34 GMT Organization: WorldOnline - The Internet Communication Company Lines: 16 Message-ID: References: <387f9d3d DOT 0 AT news1 DOT cluster1 DOT telinco DOT net> NNTP-Posting-Host: vp177-220.worldonline.nl X-Trace: news.worldonline.nl 947897404 14506 195.241.177.220 (15 Jan 2000 00:50:04 GMT) X-Complaints-To: newsmaster AT worldonline DOT nl NNTP-Posting-Date: 15 Jan 2000 00:50:04 GMT User-Agent: slrn/0.9.5.4 (UNIX) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 14 Jan 2000 22:00:47 -0000, Andy wrote: > I am just beginning to learn C++ out of a book and when I tried the limits > off 'int' and 'long int' they both > gave the same result? Is it djgpp or my computer, seeing as I am new to this > it's probably me doing something wrong. For DJGPP (32-bit) sizeof( int ) and sizeof( long int ) are the same. But these can be different for example in 64-bit gcc environments, or 16-bit. But nothing's going wrong in your case. -- Wilmer van der Gaast (lintux AT dds DOT nl) ICQ 55707076 Hi, I'm a signature virus. plz set me as your signature and help me spread :)