Can someone please explain strings to me?
I am really stupid and should have done this long ago. I have had my uni classes and struggled with C when it came to strings and pointers after reading the books and googling.
Anyway, I am very competent at Java, but with C I can't understand strings at all. In Java all you do is
but in C there is all this stuff with arrays - I really can't get it.
String myString = "blah";
I know that the string is stored in contiguous form in the computer memory, however, I can't understand much more than that.
Could some kind soul tell me how to initialise strings in C and (preferably in Lehmann's terms) explain exactly what is happening?
PS. I struggled so badly that I failed the coursework for the class and have had to do extra stuff over the summer instead of going out drinking every day.