Just try compiling this short program, it's giving me funny results.
#include <stdio.h>
struct teststruct {
int i;
char c;
};
int main(int argc, char** argv) {
printf(" Size of int is %d, Size of char is %d and size of struct is %d\n",
sizeof(int),sizeof(char),sizeof(struct teststruct));
}
I am getting 4,1,8 for that one. Maybe I have forgotten adding numbers,
but isn't 4+1=8 anymore??
- Sandip
--
--------------------------------------------------------------
Sandip Bhattacharya | Mail me @
DSF Internet Services Pvt. Ltd. | Office: [EMAIL PROTECTED]
ICQ: 38380743 | Personal: [EMAIL PROTECTED]
Yahoo: sandip_in |
-----------------------------------------------------
An alpha version of a web based tool to manage your
subscriptions with this majordomo2 server is available
at http://lists.linux-india.org/cgi-bin/mj_wwwusr