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;

12th Apr 2018, 6:37 PM
PIYUSH MANOHAR
PIYUSH MANOHAR - avatar
2 Answers
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;};
12th Apr 2018, 6:45 PM
Bartosz Pieszko
Bartosz Pieszko - avatar
0
this was asked in one quiz in sololearn
13th Apr 2018, 5:02 PM
PIYUSH MANOHAR
PIYUSH MANOHAR - avatar