the idea is to assign an array of string, for example:
a[0] = a
a[1] = aa
a[2] = aaa
a[3] = aaaa
a[4] = aaaaa
but assigned and outputted in a for loop:
Code:printf("%s\n", ba[i]);
at the moment, i have something like this
Code:char ba[10]; char first[] = "first"; char second[] = "second"; for(i=0;i<10;i++){ strcat(second,first); ba[i] = second; printf("%s\n", ba[i]); }