How are the char stored---individual free standing variables, string (C style vs STL string object vs other string object implementation like CString or APSTring), or individual char in an array/list/vector/stack, whatever?
can any one provide me a sample code for it ........?????
Sample code for what? A sorting algorithm? Sorting characters as opposed to integers (as Mosaic mentions, characters are treated as integers, only they don't have as big of a range). Lots of sample code out there. Check the code snippets section, google "C++ bubble sort", stuff like that, but be more specific if you've tried these things and haven't found the results. A bubble sort implementation is pretty short.