Typedef
      Typedef is a keyword in the C and C++ programming languages. It is used to give a data type a new name. The intent is to make it easier for programmers to comprehend source code.
/*
	http://www.ProbCOMP.com
	
	Typedef is a keyword in the C and C++ programming languages. 
	It is used to give a data type a new name. 
	The intent is to make it easier for programmers to comprehend source code.


*/

#include<stdio.h>

struct date
{
	int day;
	int month;
	int year;
	char dayname[10];
};
typedef struct date DATE;	

void main()
{
	DATE d;
	printf("\nenter day name: ");
	gets(d.dayname);
	printf("enter day: ");
	scanf("%d",&d.day);
	printf("enter month: ");
	scanf("%d",&d.month);
	printf("enter year: ");
	scanf("%d",&d.year);
	
	printf("The date is %d / %d / %d  and the day is %s",d.day,d.month,d.year,d.dayname);
}
										

Download Program
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More