C Remove Last Charachter From String

[Solved] C Remove Last Charachter From String | Vb - Code Explorer | yomemimo.com
Question : c remove last character from a string

Answered by : fernando-gonzalezmorales

#include <string.h>
str[strlen(str)-1] = '\0';

Source : https://stackoverflow.com/questions/18949552/removing-last-character-in-c/18949575 | Last Update : Mon, 14 Dec 20

Question : c remove last charachter from string

Answered by : wrong-wolf-dw6dqlwlqfdi

str[strlen(str)-1] = '\0';
test2

Source : https://stackoverflow.com/questions/18949552/removing-last-character-in-c | Last Update : Sun, 09 Jan 22

Answers related to c remove last charachter from string

Code Explorer Popular Question For Vb