A char variable, by definition, can only hold a single character whilst "/" is actually 2 characters, one for the slash and another for the terminating zero of the string.
Use char delimiter = '/'; instead
A char variable, by definition, can only hold a single character whilst "/" is actually 2 characters, one for the slash and another for the terminating zero of the string.
Use char delimiter = '/'; instead