[Solved] Program to remove all the consecutive same letter from a given string [closed]
printf(“%s\n”,str2[k]); str2[k] is a char, but you tell printf it is a char* But this program still will not work properly – the first call to gets() will just read the carriage-return that is left in the input queue after reading the initial int value. And you never null-terminate str2. solved Program to remove all … Read more