All pastes #799293 Raw Edit

Anonymous

public text v1 · immutable
#799293 ·published 2007-11-27 14:49 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

main (){

char *woorden[10];
char woord [100];
int i;

for (i=0;i<10;i++){
gets(woord);
woorden [i] = calloc (strlen(woord)+1, sizeof(char));
strcpy(woorden[i],woord);
}

for (i=0;i<10;i++){
puts(woorden[i]);
}
return 0;
}