narunaru 0 Newbie Poster

Hi, I'm a beginner programmer and I have an assignement of making the radix sort!

My plan is to make a helper function that will return the place value of a number.
(for example, if the number is 127, then the function will return either a 1, 2 or 7)
Then i'll call this to the radixsort function.
Can anyone give me an example of a radix sort? In desperate neeed of it...

int placeValue (int number, int placeNumber)
{
    number%10^x   ???
}

void radix (int Array[], int size) // make helper function , placeValue, to return the placevalue number
{
    for (int x=0; x < size; x++)
        for(int y=0; y < size; y++)
        {
           
        }

}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.