0

How compiler determines a quantity of array's dimensions at parameter description point?

I mean that actually I can apply a 2 dimensional array as a parameter of function printArray(int arr[], int size) or not? Does this pursuit reglamented?

24th Apr 2017, 8:16 AM
Петр Мухачев
Петр Мухачев - avatar
1 Réponse
0
When you pass an array as a parameter, you're not actually passing the content (and thus the size) of the array itself –rather, you pass a pointer to the array: some kind of indicator of where the array begins, in terms of memory allocation.
25th Apr 2017, 6:01 AM
Álvaro
Aujourd'hui en vedette
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes
Create Agent
0 Votes