Define a structure type and a variable of a structure type in separate statements - C Structure

C examples for Structure:Structure Definition

Description

Define a structure type and a variable of a structure type in separate statements

Demo Code

#include <stdio.h>

struct Dog//from  w  w w  .  j  a v a 2 s  . c om
{
  int age;
  int height;
  char name[20];
  char father[20];
  char mother[20];
};

struct Dog James = {
    4, 7,"James", "Tim", "Jane"
};

int main(void){
   return 0;
}

Related Tutorials