Counting sort doubt problem

i wrote code for freq array and counting sort
but can u explain me how to print array after updating freq array
my code


i didnt wrote code for printing after getting freq array
explain how to print output

Tarandeep, i have made changes in few lines of code, here you have to take an auxillary array, so as to print the array in sorted order,


Plz refer to this code