Removing Duplicate Characters Using C program(Case Sensitive)
Removing duplicate character or repeated character from the string (Case Sensitive):
C Program:
Output 2:
Explanation:
From the above program,
ü The above lines used to compare the characters in the string one by one, when the repeated character comes then its value is assigned to '0'(a[j]='0').
ü a[i]!=' ', this condition is used to not remove the repeated blank space from the string.
0 Comments