This is a language pointer question "T"

Asked 2 years ago, Updated 2 years ago, 49 views

void array()
{
int random;
    srand(time(NULL));
    for (random = 0; random < 50; random++) {
        printf("/%d", rand() % 1000 + 1);
        }
}

We're going to create a random number function like this I want to flip this function upside down, but what should I do with the pointer... I'm a beginner, so I don't think I'll get the hang of it.

pointer

2022-09-22 10:41

1 Answers

I don't know exactly what it means to turn it upside down. If you want to print random numbers in the opposite order of generation, you need to store them first.


2022-09-22 10:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.