I could not print one string plz tell ..please correct my code
@abhay_091 take the basic input
3
bat
apple
batman
you sorted it to apple,bat,batman. you printed apple then u have bat and batman to compare.first u are only comparing the initial charectar. also when u make comparison and check in for the length u printed batman but what did u do about the βbatβ left?
try and write a compare function to overload the sort .