Lecture 18:  Structures

Activity:  Memory Matrix



Fill out the following matrix.  This matrix lists some conjectures and it's your job to decide if these hold under two conditions.  The first condition is the case of an array and the second condition is the case of a structure.  Please write "yes" or "no" in the blank cells of the table.
 
 
Conjecture Array Struct
Holds multiple pieces of data    
Data must be of the same type     
Can compare to another of same type using ==      
Can be copied by using =     
Always passed as a parameter as call by reference      
Allow programmers to build new types      
Can print all contents with a single printf statement     
Field access operator is .