Search:

Type: Posts; User: Ducky

Search: Search took 0.01 seconds.

  1. lol @Elysia...

    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...
  2. Thank you, that helped.

    Thank you, that helped.
  3. Change one element of string pointed by char pointer

    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';

    ...
Results 1 to 3 of 3