#include<stdio.h> #include<math.h> #include<malloc.h> #include<string.h> #include<stdlib.h> #include <time.h> main() { char *s[]={"man","woman","girl","boy","sister"},*p[5]; for(int i=0;i<5;i++){ p[i]=s[i]; } printf("%s ",p[0]); }
#include<stdio.h> #include<math.h> #include<malloc.h> #include<string.h> #include<stdlib.h> #include <time.h> main() { char *s[]={"man","woman","girl","boy","sister"},*p[5]; for(int i=0;i<5;i++){ p[i]=s[i]; } printf("%s ",p[0]); }