#include <stdio.h>
#include <string.h>

struct User{
    char id[10];
    char name[20];
    char email[30];
};
struct Data{
    int *i1;
    int *i2;
};

int main() {
    struct User koreanUser[100];
    struct User japanUser, *userPtr;
    userPtr = &japanUser;

    strcpy(userPtr->id, "jin");
    strcpy(userPtr->name, "Jieun");
    strcpy(userPtr->email, "ahnwia@gmail.com");
    printf("id: %s, name: %s, email: %s\n", userPtr->id, userPtr->name, userPtr->email);

    struct Data data1;
    int input1 = 1, input2;
    data1.i1 = &input1;
    data1.i2 = &input2;
    *data1.i2 = 2;
    printf("i1: %d, i2: %d\n", *data1.i1, *data1.i2);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: