Finding same characters in any two string
Asked By
0 points
N/A
Posted on - 09/20/2012
Hello,
How to find similar characters in any two string arrays.Â
Such as from:
Char str1 [15] = "Programming";
char srt2[15]= "scripting";
Hello,
How to find similar characters in any two string arrays.Â
Such as from:
Char str1 [15] = "Programming";
char srt2[15]= "scripting";
Use nested for loops for finding similar characters, such as each element of first string should compare to all characters of 2nd, if same then copy it into another array. But keep in mind while saving in another array you should check whether the array contains the same element already or not.
Sample code is…
  char str1[20]="programming";