Ehm.. I kind' of though this modifiers like long / short expands / reduces amount of memory allocated when variable are created, but...
#include <stdio.h>
#define test_int int
#define long_int long int
#define long_long_int long long int
void main()
{
printf("%i
", sizeof (test_int)); //output 4
printf("%i
", sizeof (long_int)); //output 4. Why? wasn't I modified it's size?
printf("%i
", sizeof (long_long_int)); //output 8
}
For unknown reasons, it prints the size of int and long int as same.
I use vc++ 2010 express edition.
Sorry, hard to find answer in google, it always shows long and int as separate types.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…