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