Let’s start the discussion about How to remove last character from a string in C in following Approaches.
Below program explains you how to remove last character from a string in C
Contents
C remove last character from a string
#include<stdio.h>
str[strlen(str)-1] = '\0';
I hope the strategies listed above work for you. Happy coding and come back again.
Similar Post : Donut C program