but array is a pointer
it decays and give the first value
i want to input an array which the user chose to the function
how do i do that?
Printable View
but array is a pointer
it decays and give the first value
i want to input an array which the user chose to the function
how do i do that?
Just like you said. The array name will decay to a pointer. But the function must accept a pointer-to-int, not some nonexistent "[][]" thing.