c program abt array structures passing function


//1ST FUNCT
int collection_random_numbers(user a[], int v) // varaible user and a as array.
{ int i;
printf("\n* Enter the numbers * : \n");
for(i=0; i < v; i++) {
scanf("\n%d", &a[i].n);
}
prints_random_number(a, v);
}

//2ND FUNCT
int prints_random_number(user b[], int v)
{ int i;
for(i=0; i < v; i++)
{
printf("\n%d", &b[i].n);
}

// I AM TRYING TO PUT THE CONTENTS OF THE STRUCT ARRAY FROM 1ST INTO THE PRINTS RANDOM NUMBER (2ND FUNCTION)SO THAT IT CAN PRINTED FROM THE 2ND FUNCTION. 2ND FUNCTION IS CALLED IN THE 1ST ONE TO PUT THE CONTENTS SO THAT IT CAN PRINT.
Topic archived. No new replies allowed.