dizar mejzini

dizar mejzini

  • NA
  • 4
  • 1.9k

arrays

Dec 27 2014 8:47 AM
I have a question about the sorting and arrays and I have to finish this for exam, but really i am a new student in C and I don't have an idea how to do this:
the question:
Assume that you have a very long string and you are assigned to count the number of occurrences of each character that exists in the string. For example, the string is
"this is supposed to be one damn long character array"
and the two output array should be
"this upoedbnamlgcry"
{2,2,2,4,9,1,2,3,4,2,1,3,5,1,1,1,1,2,1}
Can you write the function that does this?
 

Answers (3)