Accessing elements within a pointer of a struct inside another pointer to a struct
问题 Just trying to learn how nested pointers to structs work. How would I access an element within a pointer of a struct within another pointer to a struct? Thanks. #include <iostream> typedef struct { unsigned int a; unsigned int b; unsigned int c; } inner; typedef struct { unsigned int d; unsigned int e; inner * in; } outer; /* Function to use struct */ void test(outer * out) { //Update the value of out->in->a. out->in->a = 5; } int main() { outer * out; test(out); std::cout << "My updated