#include<stdio.h>

/**
 * Terry Harvey CIS 105 Section 010 TA Tina Weymouth
 *  Demonstration program for structs
 **/

typedef struct{
    int num_legs;
    //int aspamn = 8; illegal to initialize
    char name[20];
} Pet;  //this makes a new type called Pet

int main(){

    Pet p1;
    Pet p2 = {4, "Mildred"};
    p1.num_legs = 4;
    
    printf("p1 has %d legs.\n", p1.num_legs);
    printf("p2 has %d legs and is named %s.\n", p2.num_legs, p2.name);
    return 0;

}


