Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void application()
- {
- int randSize, i;
- srand((unsigned)time(NULL));
- randSize = (rand() % 15);
- char array[randSize];
- char *bar = array;
- for(i=0; i< randSize; i++)
- array[i] = 'x';
- printf("%s | ", bar);
- }
- char array[randSize + 1];
- // loop to fill the array
- array[i] = '