i want to clear a doubt...
please check out the following codes..
another style is :
here i am passing an array to both the functions...and one receives it through p[] and another through *p....
then what is the difference between both styles ??
or just that the former uses subscript and the latter dereferences the pointer to access the values... ??
please clear out my doubt...
please check out the following codes..
Code:
int function (int p[])
{
//sm code
}
Code:
int function (int *p)
{
// sm code
}
then what is the difference between both styles ??
or just that the former uses subscript and the latter dereferences the pointer to access the values... ??
please clear out my doubt...
Comment