0

how to do it?

I want to know int a=(1,2,3,4,5) progress Is it possible? does it cause some error? and how it progress? 5 is stored in a? then where is 1,2,3,4? Also I didn't even learn this, but It has shown up at play. https://code.sololearn.com/cIz39aQ8FS1I/?ref=app

27th Jan 2020, 4:29 AM
sollex
sollex - avatar
6 ответов
27th Jan 2020, 4:38 AM
Scooby
Scooby - avatar
+ 2
then 1 to 4 have not effect on a? I don't understand why this kind of question is in play? section.
27th Jan 2020, 4:37 AM
sollex
sollex - avatar
+ 1
Comma operand has no effect on store data on at built-in data type.. Ony single value last can be stored..
27th Jan 2020, 4:34 AM
Scooby
Scooby - avatar
+ 1
thx now I see
27th Jan 2020, 4:41 AM
sollex
sollex - avatar
+ 1
In python there are generator functions for this. Maybe c++ has similar stuff.
27th Jan 2020, 6:44 AM
Oma Falk
Oma Falk - avatar