#include <stdio.h> #include <string.h> int main() { char str1[]="abcdefghijklmnopqretuvwxyz"; char str2[]="iiiii"; char str3[]="abcdefghijklmnopqretuvwxyz"; char str4[]="oooooooo"; int count1,count2; count1=0; while (str1[count1]) count1++; printf(" %d ",count1); count2=strlen(str2); printf("%d ",count2); if(sizeof (str2)<=sizeof(str1)) strcpy(str1,str2); printf("%s",str2); printf(" %s",str1); count2=0; count1=8; while (str3[count2]) str4[count1++]=str3[count2++]; printf(" %s",str4); system("pause"); }
#include <stdio.h> int main() { char a[]="To be or not to be"; char b[]=",that is a question"; int count =0; while (a[count]!='