Thread: More Weirdness
View Single Post
Old 2009-05-14, 19:31   #1
R.D. Silverman
R.D. Silverman's Avatar
Nov 2003

1D2416 Posts
Default More Weirdness

It's heavy mystery time. Under Linux gcc I have:

#define T 15
#define K 32

printf("%d %d %d %d\n", T, K, T*K, (T)*(K) );


15 32 108 480


What is the preprocessor doing??? Why is it misinterpreting T*K?
and furthermore..... how is it misinterpreting it??????
R.D. Silverman is offline   Reply With Quote