Data Structures
Data Structure Size Calculation
Worksheet
CS 221
Dr. Leap
Fall, 1999 
 Syllabus
 Outline
 Grades    
 Return to Top
     
    Data Type or Variable Storage Size (in bytes)
    1 long int  x;
    2 char  ch;  
    3 short int  i[20];  
    4 struct bookrec {
        int stocknum;
        float cost;
        char title[80];
    }
     
    5 int *ip;  
    6 char *cp;  
    7 float  vector[24];  
    8 typedef struct noderec{
        char name[50];
        char address[100];
        char gender;
        float grades[20];
    } Node;
     
    9 typedef Node *nodeptr;
    10 nodeptr  np;  
    11 typedef struct librec{
        Node Nlist[10];
        int nodecnt;
        nodeptr link;
    }  libtype;
  
   
     
HomeFacultyProgramsStudentsOpportunities
Department LinksAffiliated ClubsFacilitiesResearchContact

About EtownAcademicsAdministrativeAdmissionsAlumni Relations
Etown SportsnetLibraryComputingNews @ EtownStudent Life


Copyright © 1999 Elizabethtown College
All Rights Reserved Maintained by Dr. Thomas Leap

Last updated on Tuesday, April 27, 1999 10:23:31