(+91) 7 999 01 02 03 Get started with 60 Hours of Free course right now 

Sort an array of strings

Kopal Jaiswal
16 Posts

WAP to sort an array of strings based on ascending number of characters in each string. If two words have same length then sort them by 



Array[]={"this", "is", "a" , "learning", "portal"}


a is this portal learning

Published By : Kopal Jaiswal
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.