C program to find count of specific character

Question Write a C program to find count of ‘a’ in String. The String must be generated from the given Substring.     We are given a Substring from which generate a  string by repeatedly joining/appending the given substring. In the  Example ‘abaabaabaa’ is the string generated from ‘abc’. The limit is 10. Count of ‘a’  […]

Program to print the mismatched characters

Question Write a program to print the mismatched characters from two array. Output must be like the one given below. Logic The logic is simple, compare each character of the same index. If characters are mismatched then print both the characters. If characters are same, then increment the index position of both arrays. After comparing each […]