Two structs, same three members

On a typical x86-64 target (8-byte-aligned double, 4-byte-aligned int, no #pragma pack), what does this program print?

main.cpp
#include <iostream>

struct A {
    char c;    // (1)
    double d;
    int i;
};

struct B {
    double d;  // (2)
    int i;
    char c;
};

int main() {
    std::cout << sizeof(A) << " " << sizeof(B) << std::endl;
}

61 of 117 in C++