Hello guys. I am stuck help me out.
I am trying to write a code that simply adds "s" in the end of name. In other words; Singular to plural (no ies es rule; just "s" in the end)
Code is here:
Code:#include<stdio.h> #include<conio.h> #include<string.h> main() { char *ptrname[35]; ptrname[0]="Cow"; ptrname[1]="Parrot"; for(int i=0;i<2;i++) { strcat(ptrname[i],"s"); printf("%s\n",ptrname[i]); } getch(); }