why didnt it show any error when we didn’t pass any comparator parameter in sort function?
usually error :- Missing argument expected 3 argument given 2
Default function sort();
Sort function has templates for both 2 arguments and 3 arguments . To provide a comparator function is not compulsory . By default it sorts ascending . Only if u want to change that ordering u need to add a comparator else it will be fine as it is.
ok so it uses the concept of function overloading
Yes u can say that 