Posts

Showing posts with the label STRING concatenation
Image
STRING MANIPULATION STRING MANIPULATION                About                                Projects                                Tutorial Videos #include<stdio.h> int leng(char s1[10]) { int count=0,i=0; while(s1[i]!='\0') { count++; i++; } return(count); } void con(char s1[10],char s2[10]) { char s[20]; int l1,l2,i,j=0; l1=leng(s1); l2=leng(s2); for(i=0;i<l1;i++) { s[i]=s1[i]; } for(i=l1;i<l2+l1;i++) { s[i]=s2[j]; j++; } printf("--------------------------------------------\n THE CONCATINATED RESULT OF THE ENTERED STRING IS : \n %s\n------------...