0
Can you explain it?
int i=2,j=1,k=3; int w,q,r; w=i,j,k; q={i,j,k}; r=(i,j,k); cout<<w<<q<<r;
2 Réponses
0
it doesn't work.
error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in assignment
q = {i, j, k};
error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in assignment
q = {i, j, k}
error: expected ‘}’ before ‘;’ token
q = {i, j, k;}
error: expected ‘}’ before ‘;’ token
q = {i, j, k;};
0
this was asked in one quiz in sololearn