整数类型sizeof(int); 4字节or8字节函数sizeof(函数); 函数返回值类型占据的字节数字符数组char c[] = "abc";sizeof(c); 3+1=4整数数组int a[3];sizeof(a); 3*4=12 or 3*8=24
参考文献
https://zhidao.baidu.com/question/19171773.html
转载于:https://www.cnblogs.com/overlows/p/10518189.html
相关资源:JAVA上百实例源码以及开源项目