• Akshay Kolhapure

    Akshay Kolhapure 08 Oct,2014

    Question:

    Write a program which accepts a string and an integer (0 or 1) as command line arguments. If the integer entered is 0, sort the string alphabetically in the ascending order and if it is 1, sort it in the descending order. If the user enters invalid number of arguments, display appropriate message. (Hint – use atoi)

    Source Code:

    Warning! To view program you need to login. Click here Login with us..