- what is a and what is b?
- can we represent a[0] as a?
Doubt in the code for decreasing order
hello @pmschhabra
a)
a and b in comparator are any two numbers of the array and we are deciding their order
using logic defined inside comparator (i.e which should come first in array).
b) a is base address of array and a[0] will have same address.
so u can write a[0] as *a.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.