60 734
Assignments Done
97,9%
Successfully Done
In April 2018

Answer to Question #44194 in C for Vijayasurya

Question #44194
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[] !!
Expert's answer
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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
15.07.14, 18:12

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!

Vijayasurya
14.07.14, 17:08

thank you so much, that helped.

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions