D
Dave
#include <iostream>
using namespace std;
struct foo
{
int a;
int b;
};
int main()
{
int x = 5;
foo bar = {x = 1, x + 1};
cout << bar.a;
cout << bar.b << endl;
// Is this guaranteed to output "12"?
// Is it possible that this could output "16"?
}
Regards,
Dave
using namespace std;
struct foo
{
int a;
int b;
};
int main()
{
int x = 5;
foo bar = {x = 1, x + 1};
cout << bar.a;
cout << bar.b << endl;
// Is this guaranteed to output "12"?
// Is it possible that this could output "16"?
}
Regards,
Dave