Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
struct Student {
char name[20];
int age;
float marks;
};
int main() {
struct Student s = {"Alice", 20, 89.5};
printf("Name: %s\n", s.name);
printf("Age: %d\n", s.age);
printf("Marks: %.1f\n", s.marks);
return 0;
}Coding works best on desktop or with an external keyboard.