Allouer un bloc de mémoire pour des données de type ‘double’

Author:


Download


#include 
#include 

#define ARRAY_SIZE 100

int main ()
{
double *pTab = NULL;
int i = 0;
pTab = (double*) malloc( ARRAY_SIZE * sizeof(double) );
if ( pTab != NULL )
{
   for ( i = 0; i < ARRAY_SIZE; ++i )
     pTab[i] = (double)rand( )/RAND_MAX;
}
for(int x=0;x
    

Leave a Reply

Your email address will not be published. Required fields are marked *