In my Data Structures text book there is mergesort program.
In that the function prototype is mergesort( int *,int,int) whereas the function header is
mergesort(int a[], int lb, int ub) , please explain int * in the prototype it should actually be int a[] !!
1
Expert's answer
2014-07-14T09:57:30-0400
Dear Vijayasurya, Actually int * and int[] is the same thing. int[] is the pointer to the first array element, where int* is the pointer to variable. So basically they're the same (as array element is actually a variable). Hope that helps.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Dear Vijayasurya, You're welcome. We are glad to be helpful. If you liked our service please press like-button beside answer field. Thank you!
thank you so much, that helped.
Leave a comment