Declare a user defined data type called Person with 3 fields of the following type: Name, DOB (Date of Birth) and Address,where Name contains FirstName and LastName, DOB contains Day, Mon and Year; and Address has the following fields: House, Street, City, State, PinCode and TelephoneNo.
#include<stdio.h>
struct Name
{
char FirstName[16];
char LastName[16];
};
struct DOB
{
int Day;
char Mon[100];
int Year;
};
struct Address
{
int House;
int Street;
char City[20];
char State[20];
int Pincode;
char TelephoneNo[25];
};
struct Person
{
struct Name name;
struct DOB dob;
struct Address address;
};
int main(void)
{
return 0;
}
struct Name
{
char FirstName[16];
char LastName[16];
};
struct DOB
{
int Day;
char Mon[100];
int Year;
};
struct Address
{
int House;
int Street;
char City[20];
char State[20];
int Pincode;
char TelephoneNo[25];
};
struct Person
{
struct Name name;
struct DOB dob;
struct Address address;
};
int main(void)
{
return 0;
}
Comments
Post a Comment