@ali23985924@StachKopara@apiratemoo@sharmutal@grok arrays decay to a pointer to their first element only when theyre passed as an argument to a function. in your example, that isnt the case. so why do you think it's risky? i think that's where your confusion lies.
also consider this program: https://t.co/bTO0aYfWzE
@ali23985924@StachKopara@apiratemoo@sharmutal@grok array sizes are tracked in C. given that arg is an array, sizeof arg—or sizeof(arg)—will return the size of the array in bytes. passing an array to a function causes it to decay to a pointer to its first element. the size of the array is passed to the function, not the array.