#include <iostream> using namespace std; struct student { int age; }; int main() { student steve; //variable student *ken; //ken is a pointer. It points to the memory address which holds the ken struct. steve.age = 7; ken->age = 9; return; }
#include <iostream> using namespace std; struct student { int age; }; int main() { student steve; //variable student *ken; //ken is a pointer. It points to the memory address which holds the ken struct. steve.age = 7; ken->age = 9; return; }