#include <stdio.h>
#include <stdlib.h>
// Define a structure for a guide dog
struct GuideDog {
char name[50];
int age;
char breed[50];
};
// Function to create a new guide dog
struct GuideDog createGuideDog(char name[], int age, char breed[]) {
struct GuideDog newDog;
strcpy(newDog.name, name);
newDog.age = age;
strcpy(newDog.breed, breed);
return newDog;
}
// Function to display information about a guide dog
void displayGuideDog(struct GuideDog dog) {
printf("Guide Dog Information:\n");
printf("Name: %s\n", dog.name);
printf("Age: %d\n", dog.age);
printf("Breed: %s\n", dog.breed);
}
int main() {
// Create an instance of the GuideDog structure
struct GuideDog myGuideDog = createGuideDog("Fido", 3, "Labrador");
// Display information about the guide dog
displayGuideDog(myGuideDog);
return 0;
}