whats wrong with that? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
16th Sep 2017, 8:28 AM
Oma Falk
Oma Falk - avatar
3 ответов
+ 5
When you use the {} style of instantiation, it needs to be done at the same time as the declaration. int arr[] = {1,2,3,4,5}; Then index count can optionally be omitted when using this type of instantiation.
16th Sep 2017, 10:26 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
yes man!
16th Sep 2017, 8:42 AM
Oma Falk
Oma Falk - avatar
16th Sep 2017, 4:33 PM
Sreejith P
Sreejith P - avatar