R
rattan
Assume the following codce (line numbers of reference only, compiler
gcc-3.4):
1 int a[3] = {2, 2, 3}, **ptr;
2 int sumit(int **, int);
calling sumit:
3 sumit(&a, 3);
or
4 *ptr = a; sumit(ptr, 3);
call on line 3 produces incompatible type pointers warning
but on line 4 does not.
So, what is the difference between the two calls?
-ishwar
gcc-3.4):
1 int a[3] = {2, 2, 3}, **ptr;
2 int sumit(int **, int);
calling sumit:
3 sumit(&a, 3);
or
4 *ptr = a; sumit(ptr, 3);
call on line 3 produces incompatible type pointers warning
but on line 4 does not.
So, what is the difference between the two calls?
-ishwar