Structure
      Structure is a method of packing data of different types. A structure is a convenient method of handling a group of related data items of different data types.
/*
	http://www.ProbCOMP.com
	
	Structure is a method of packing data of different types. 
	A structure is a convenient method of handling a group of related data items of different data types.
*/

#include<stdio.h>

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

void main()
{
	struct 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