Another sizeof question
    Doug Gwyn 
    gwyn at smoke.brl.mil
       
    Thu Nov  1 10:28:28 AEST 1990
    
    
  
In article <13294 at crdgw1.crd.ge.com> volpe at camelback.crd.ge.com (Christopher R Volpe) writes:
>But, could you or someone else point me to a reference in the Standard
>that says that a constant expression in a preprocessor context cannot
>contain sizeof?
It doesn't say that.  The following is strictly conforming:
	#define sizeof 42+
	#define a (-40)
	#if sizeof a > 2
	#include <banana.h>
	#endif
	#undef sizeof
    
    
More information about the Comp.std.c
mailing list