warning: assignment makes integer from pointer without a cast
When you write the statement the compiler sees the constant string “abcdefghijklmnop” like an array. Imagine you had written the following code instead: Now, it’s a bit clearer what is going on. The left-hand side, *src, refers to a char (since src is of type pointer-to-char) whereas the right-hand side, otherstring, refers to a pointer. This isn’t strictly forbidden because you may want … Read more