lol
@Elysia
I was looking at somebody's code and I was wondering why was that working when 'pa' is declared as a pointer so the value it was pointing couldn't be changed.
Is it because of...
Type: Posts; User: Ducky
lol
@Elysia
I was looking at somebody's code and I was wondering why was that working when 'pa' is declared as a pointer so the value it was pointing couldn't be changed.
Is it because of...
Thank you, that helped.
I know how to change a char in a char array but I wonder if we can change one element of a C-string pointed by a char pointer?
int main()
{
char * p = "Hello World";
*(p+1) = 'x';
...