#include #include using namespace std; struct str { int i; double d; }; int main() { str a[] = { {10, 15.0}, {20, 25.0}, {30, 35.0} }; const size_t n = sizeof a / sizeof a[0]; cout << (*(a + 2)).d << "\n"; return EXIT_SUCCESS; }