#include <stdio.h> void main() { char s[50]="Crrosssection"; int i,k=0; char res[50]; for(i=0;s[i]!=0;i++){ if(s[i]!=s[i+1]) res[k]=s[i],k+=1; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)