An error occurred while loading the file. Please try again.
-
LITIERE MALRIC authoreda773fcae
Forked from
GOSSA JULIEN / P4z
3 commits ahead of the upstream repository.
utils.c 353 B
#include <stdio.h>
#include <stdlib.h>
#include "utils.h"
void affichertab(long* T, int s){
printf("[ ");
for(int i = 0; i < s-1; i++){
printf("%ld , ",T[i]);
}
printf("%ld ]\n",T[s-1]);
}
void listeAlea(long *T,size_t longeur, long N){
for(size_t i = 0; i < longeur; i++){
T[i] = rand() % N * -1;
}
}