Is the following code produce defined behavior or undefined behavior. I tried it on my VC++ and I got one thing, but I'm curious to see if that is just coincendence or if it is mandated by the c++ standard.
#include <iostream>
class TestClass {
public:
char testChar;
double testDouble;
int testInt;
};
int main(int argc, char** argv) {
TestClass s = {412.1, 52};
std::cout << s.testChar + s.testDouble + s.testInt << std::endl;
}