[comp.lang.c] Are casts constants?

bengsig@orcenl.uucp (Bjorn Engsig) (02/14/89)

Is it allowed to have type casts in constant expressions, and if not, why?

The example

char array [ (size_t) ( ... ) ]

show, what I would like to do.  The  ...  is a constant expression,
typically including sizeof's and possibly other casts to scalars.
-- 
Bjorn Engsig, ORACLE Europe         \ /    "Hofstadter's Law:  It always takes
EUnet path: mcvax!orcenl!bengsig     X      longer than you expect, even if you
USA domain: bengsig@oracle.com      / \     take into account Hofstadter's Law"