#include <iostream>

using namespace std;

struct Student{
    int age;
    char grade;
};

int main() {

    Student s = {14, 'C'};
    Student* a = &s;

    a -> age = 15;
    a -> grade = 'A';

    cout << s.age <<endl;
    cout << s.grade <<endl;
}

Embed on website

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