>> is the overloaded extraction (input) operator of C++. srand() merely seeds the random number generator rand(). This data is not dynamically allocated. No cases were proved. Something silly like this might be of help:
Code:
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#define SIZE 5
int main(int argc, char *argv[])
{
char *article[SIZE] = {"the", "a", "one", "some", "any"};
char *noun[SIZE] = {"boy", "girl", "dog", "town", "car"};
char *verb[SIZE] = {"drove", "jumped", "ran", "walked", "skipped"};
char *prep[SIZE] = {"to", "from", "over", "under", "on"};
char sentence[200];
srand(time(0));
sprintf(sentence, "%s %s %s %s %s %s",
article[rand() % SIZE],
noun[rand() % SIZE],
verb[rand() % SIZE],
prep[rand() % SIZE],
article[rand() % SIZE],
noun[rand() % SIZE]);
printf("%s\n", sentence);
return 0;
}
Edit: Minor fix to the code