Q:

Why is the string loop is being ignored?

I am new to the programming world and I'm trying to make a string split by using a loop that should split all characters separately but it's being ignored and basically ends with showing the input of the user instead of using the loop to separate the individual letters/characters. Have I missed declaring something important in the loop?

A:

for (i = 0; str[i] != '\0'; i++); <- there's a semicolon here, so your loop literally does nothing
also note that str[i] != '\0' is a very dangerous way of iterating your string. If your string doesn't contain a zero-terminal character, C will happily continue reading memory beyond the end. 

