structure basics

Solutions on MaxInterview for structure basics by the best coders in the world

showing results for - "structure basics"
Leanne
13 Jan 2017
1#include <stdio.h>
2
3struct Country
4{
5    char name[50];
6    char capital[50];
7};
8
9int main()
10{
11    struct Country c1;
12    scanf("%s\n%s", c1.name, c1.capital);
13
14    printf("The country name is %s and it's capital is %s",c1.name,c1.capital);
15    return 0;
16}
similar questions
queries leading to this page
structure basics