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 Address {
char city[20];
};
struct Student {
char name[20];
struct Address addr;
};
int main() {
struct Student s = {"Alice", {"Kathmandu"}};
printf("Name: %s\n", s.name);
printf("City: %s\n", s.addr.city);
return 0;
}Coding works best on desktop or with an external keyboard.