I wonder if this is what he was looking for?
Code:
#include <stdio.h>
#include <string.h>
int main() {
int i, j, n;
const char *menu[]={"data", "comes", "here"};
printf("\n\n");
int main() {
int i, j, len, n;
char *menu[]={"data", "comes", "here"};
printf("\n\n");
for(i=0;i<sizeof(menu)/sizeof(menu[0]);i++) {
len=strlen(menu[i]);
for(j=0;j<len;j++) {
printf("%c ", menu[i][j]);
}
}
printf("\n\n\t\t\t press enter when ready");
i = getchar(); ++i;
return 0;
}
Output is: d a t a c o m e s h e r e
Edit: Thanks, Laserlight! All fixed!