#include /* ------------------------------------------------------------------------ Structure definition (included here for brevity) (I should have use a header file to store the struct definition....) ------------------------------------------------------------------------ */ struct BankAccount { int accNum; double balance; }; int main(int argc, char *argv[]) { printf("* sizeof(int) = %lu\n", sizeof(int) ); printf("* sizeof(float) = %lu\n", sizeof(float) ); printf("* sizeof(double) = %lu\n\n", sizeof(double) ); printf("* sizeof(struct BankAccount) = %lu\n\n", sizeof(struct BankAccount) ); struct BankAccount a; printf("address of a.accNum = %lu\n", &(a.accNum) ); // ignore warning.. printf("address of a.balance = %lu\n\n", &(a.balance) ); // ignore warning.. printf("** Why is there a GAP between accNum and balance ?\n"); printf("** Try using: float balance --> no gap, why ?\n\n"); }