#include <stdio.h>
struct student
{
char name[50];
int id;
float gpa;
};
void printStudent(struct student s);
int main()
{
struct student john = {"John Doe", 1234, 3.5};
printStudent(john);
return 0;
}
void printStudent(struct student s)
{
printf("Name: %s\n", s.name);
printf("ID: %d\n", s.id);
printf("GPA: %f\n", s.gpa);
}