An error occurred while loading the file. Please try again.
-
Ukhanov Ilya authored87cd14ad
Forked from
GOSSA JULIEN / P4z
4 commits behind, 20 commits ahead of the upstream repository.
utils.c 351 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("%d , ",T[i]);
}
printf("%d ]\n",T[s-1]);
}
void genTab(long* T, long taille, long MAX) {
// Generer le tableau
for(long i = 0; i < taille; ++i) {
T[i] = rand() % MAX;
}
}