+ 1

What is the reason of error in the code

It is one of the ques in the c challenge https://code.sololearn.com/cGgm4P1lJcX0/?ref=app

22nd Jun 2019, 7:28 AM
Sharma Abhishek
 Sharma Abhishek  - avatar
5 ответов
+ 2
Try x = {1,2,3};
22nd Jun 2019, 8:27 AM
Mahv
Mahv - avatar
+ 1
The syntax only is wrong for that line: int x=1,2,3; You can't write like this
22nd Jun 2019, 7:59 AM
Sahil Bhakat
Sahil Bhakat - avatar
23rd Jun 2019, 5:48 AM
Sharma Abhishek
 Sharma Abhishek  - avatar
+ 1
What happenes in this code
23rd Jun 2019, 5:49 AM
Sharma Abhishek
 Sharma Abhishek  - avatar
0
Mahv please tell how can you manipulate the values 2 &3 with variable x
22nd Jun 2019, 8:36 AM
Sahil Bhakat
Sahil Bhakat - avatar