Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- using namespace std;
- int * iniciararreglo();
- int main()
- {
- int a[100];
- *a=iniciararreglo();
- system("PAUSE");
- return 0;
- }
- int * iniciararreglo()
- { int num,arreglo[100];
- srand(time(NULL));
- for (int i=0;i<=99;i++)
- { num=0+ rand()%(100);
- arreglo[i]=num; }
- return *arreglo; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement