#include
using namespace std;
#define mysizeof(value) (char *)(&value+1) - (char *)&value
int main(void)
{
int i;
double f;
double a[4];
double *q;
cout << mysizeof(i) << endl;
cout << mysizeof(f) << endl;
cout << mysizeof(a) << endl;
cout << mysizeof(q) << endl;
cout << mysizeof("abcd") << endl;
return 0;
}
阅读(467) | 评论(0) | 转发(0) |