print out each char in c variable. it works but it prints out way too much shit.
Dylan Barnes
'i' is uninitialised. Also, you're weirdly mixing two different ways of iterating over a string. You don't need i at all.
Kayden Bennett
Read a book, are you trying to print the string one character forward untill the string runs out? Hello ello llo lo o
Julian Hill
e is a pointer. try dereferencing it
Jackson Wood
no. i want to print each char in the string.
Jace Cook
Print with "%c" not "%s" for a start in that case
James Rogers
instead of "%s", use "%c".
Luis Taylor
You need to null terminate your string. This piece of shit grandpa language requires it otherwise you get undefined behaviour. Also make a string wrapper struct that has string length built in. Fuck it is sad people still make these mistakes but I guess C is C.