I used malloc. it didnt matter, I couldnt return the string, on the char array. I need to learn more about character arrays clearly as I have no idea how to return a whole string.
What format is the string supposed to be returning? I am returning a char* and in CS50 Ide I get everything right, here, I get was expecting "elppa", got "".
Sorry for the noob question.
I asked about this code on stack exchange and was promptly banned from asking questions.
So I would go as far as to guide new programmers away from using syntax like this.
Passes all random tests, works as it should. Yet I get this error:
The expression strcmp(buffer, "01011110001100111") == 0 is false.
I like this one. Good use of the ascii values.
I used malloc. it didnt matter, I couldnt return the string, on the char array. I need to learn more about character arrays clearly as I have no idea how to return a whole string.
Is this valid ISO 2020 syntax in C?
What format is the string supposed to be returning? I am returning a char* and in CS50 Ide I get everything right, here, I get was expecting "elppa", got "".
Sorry for the noob question.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I asked about this code on stack exchange and was promptly banned from asking questions.
So I would go as far as to guide new programmers away from using syntax like this.