#include <stdio.h>
#include <stdlib.h> #define NUM 100 int funcdef_arr(int array[]);
int funcview_arr(int * array); int main(void)
{
int array[NUM];
funcdef_arr(array);
funcview_arr(array);
exit(0);
} int funcdef_arr(int array[])
{
int count;
for (count=0;count<NUM;count++)
{
array[count] = rand()\100; }
return(0);
} int funcview_arr(int * array)
{
int count;
for (count=0;count<NUM;count++){
printf("%d\n",array[count]);}
return(0);
}
#include <stdlib.h> #define NUM 100 int funcdef_arr(int array[]);
int funcview_arr(int * array); int main(void)
{
int array[NUM];
funcdef_arr(array);
funcview_arr(array);
exit(0);
} int funcdef_arr(int array[])
{
int count;
for (count=0;count<NUM;count++)
{
array[count] = rand()\100; }
return(0);
} int funcview_arr(int * array)
{
int count;
for (count=0;count<NUM;count++){
printf("%d\n",array[count]);}
return(0);
}