Article View: comp.lang.c.moderated
Article #1971Re: Why Use 'Int' Instead of 'Long'? (With today's compilers)
From: The Amorphous Mass
Date: Thu, 15 Feb 1996 03:10
Date: Thu, 15 Feb 1996 03:10
21 lines
1642 bytes
1642 bytes
On 14 Feb 1996, Ari Lukumies wrote: > No. sizeof(void*) gives the size of the pointer used in the machine. > It depends on the memory access architecture. For example, in a PC > running in real mode, you can have near or far pointers, depending on > the memory model of the program, which differ in size: > sizeof(void far *) > sizeof(void far *). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows can't be _that_ crazy, can it? :) [No. Originally, that read > sizeof(void far *) > sizeof(near far *). Then he wrote and pointed out the "obvious" typo. So I corrected it - except I replaced the wrong word. I am planning to get some sleep within the next week or two. -mod] --James Robinson (robinson@cs.uiowa.edu -or- james-robinson@uiowa.edu) /* Indeed, C++ is a bit of an oddball of a language ... given the way that * * it requires private parts to be visible. This increases the strength of * * coupling dramatically... -- Dr. Rich Artym */
Technical Details
Message-ID:
<4fu86a$9gs@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4fjk00$nss@solutions.solon.com> <4fjp0k$p6m@solutions.solon.com> <4fp1o2$h99@solutions.solon.com> <4fst7k$2gv@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: The Amorphous Mass <robinson@blue.weeg.uiowa.edu> Newsgroups: comp.lang.c.moderated Subject: Re: Why Use 'Int' Instead of 'Long'? (With today's compilers) Date: 14 Feb 1996 21:10:02 -0600 Organization: University of Iowa, Iowa City, IA, USA Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4fu86a$9gs@solutions.solon.com> References: <4fjk00$nss@solutions.solon.com> <4fjp0k$p6m@solutions.solon.com> <4fp1o2$h99@solutions.solon.com> <4fst7k$2gv@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Sender: robinson@red.weeg.uiowa.edu