#include <stdio.h>
#include<string.h>
struct students
{
int roll;
char name[100];
char branch[100];
int batch;
};11
int main()
{
struct students s1;
struct students *ptr=&s1;
s1.roll=24;
strcpy(s1.name, "meghadeeshwar");
strcpy(s1.branch, "mee");
s1.batch=2023;
printf("%d\n",(*ptr).roll);
printf("%s\n",(*ptr).name);
printf("%s\n",(*ptr).branch);
printf("%d\n",(*ptr).batch);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: