I know for sure that array elements are stored contiguously, but what if I declared something like this:
class A {
    public:
    int a, b, c;
    // or
    int a;
    int b;
    int c;
}
Are the members stored contiguously? I've been thinking if there's a possibility that a variable is stored in between the declaration of a and b from another process, so that it's not contiguous. But I'm not sure.  Are there any guarantees?
 
    