Рет қаралды 203,947
The difference between a string stored in a char array vs. a pointer to a string literal in C. In other words the difference between: char s[] = "string" vs. char *s = "string". Importantly, we discuss why we can't modify the string in the case of a pointer to a string literal. Source code: github.com/por.... Check out www.portfolioc... to build a portfolio that will impress employers!