How to return an array which size isn't constant | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to return an array which size isn't constant

https://code.sololearn.com/cN5j7Ok4P1yU/?ref=app

12th Jul 2020, 3:38 PM
Prasetya Antoni
Prasetya Antoni - avatar
1 Answer
+ 3
you have an Variable Length Array(VLA) with static storage specification and this is not allowed by the C99 standard. C99 Standard: 6.7.5.2/10: ... Array objects declared with the static or extern storage class speciļ¬er cannot have a variable length array (VLA) type. ...
12th Jul 2020, 5:11 PM
MO ELomari