#include <stdio.h>
struct student
{
char name[50];
int age;
float gpa;
};
int main()
{
struct student s = {"John Doe", 21, 3.5};
struct student *ptr = &s;
printf("Student name: %s\n", ptr->name);
printf("Student age: %d\n", ptr->age);
printf("Student GPA: %.2f\n", ptr->gpa);
return 0;
}