Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Write the function printArray, and use the pointer to print all the elements in the one-dimensional integer array. Requirements: Print 5 integers per line.
Write the function printArray, and use the pointer to print all the elements in the one-dimensional integer array. Requirements: Print 5 integers per line.
# include & ltstdio.h & gt

Invalid? printArray(int? *array,int? Number)

{? int? Me;

For what? (? I = 0; My< number; i++? )? {? printf("%d\t ",array[I]); ? What if? (? i%5==4? )? printf(" \ n "); ? }

printf(" \ n ");

}

Invalid? Master ()

{?

int? a[ 18],I;

For what? (? I = 0; I< 18; i++? )? a[I]= I+ 1;

printArray(a, 18);

}