C Programming

typedef
This statement is used to classify existing C data types, eg,


	typedef  int counter;  /* redefines counter as an integer */
	counter j, n;          /* counter now used to define j and n as integers */

	typedef struct {
		int month, day, year;
	} DATE;

	DATE  todays_date;	/* same as struct date todays_date */


©Copyright B Brown. 1984-1999. All rights reserved.