> hey i know but i have to pass just a part of array not the whole array
Well
part( a );
Is the same as
part( &a[0] );
There is no such thing as part of an array, just a pointer to some element of the array, usually the first.
> hey i know but i have to pass just a part of array not the whole array
Well
part( a );
Is the same as
part( &a[0] );
There is no such thing as part of an array, just a pointer to some element of the array, usually the first.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.