KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given the following code: void foo( int* array ) { // ... } void bar( int** matrix ) { // ... } int main( void ) { int array[ 10 ]; int matrix[ 10 ][ 10 ]; foo( array ); bar( matrix ); return 0; } I don't understand why I get this warning: warning: passing argument 1 of ‘bar’ from incompatible pointer type Although 'foo' call seems to be ok. Thanks :)
Tags (comma-separated)
Save Edits
Cancel