🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4564

sizeof(1L) in preprocesor;How to tell sizeof(double)>sizeof(long) ?

#4564
From: Nobuhiko Katayama
Date: Fri, 05 Jan 1996 04:39
9 lines
853 bytes
Dear experts,
	I understand that sizeof(double) cannot be used with #if as
double is a type name. Could you tell me where in the standard it says
that I cannot use sizeof(1.0) or sizeof(1L)... ? Assiming that I can't
use sizeof(1.0) < sizeof(1L), is there any portable way to tell whether
long is longer(shorter) than double in preprocessor stage ?

		Thanks in advance,
			Nobu Katayama (Cornell Univ.)
Technical Details
Message-ID: <sc3f9vb6gk.fsf@lns101.lns.cornell.edu>
Path: arc1-ca.pugleaf.net!lnsnews.lns.cornell.edu!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!lnsnews.lns.cornell.edu!news
From: nk@lns598.lns.cornell.edu (Nobuhiko Katayama)
Newsgroups: comp.std.c
Subject: sizeof(1L) in preprocesor;How to tell sizeof(double)>sizeof(long) ?
Date: 04 Jan 1996 23:39:39 -0500
Organization: Wilson Lab, Cornell U., Ithaca, NY  14853
Sender: nk@lns101.lns.cornell.edu
Message-ID: <sc3f9vb6gk.fsf@lns101.lns.cornell.edu>
NNTP-Posting-Host: lns101.lns.cornell.edu
X-Newsreader: Gnus v5.1