#include <iostream>using namespace std;struct s{double a;char b;double c;int d;};int main() { s x; cout << sizeof(x); return 0;}
Standard input is empty
24
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!