how far a pointer can point to from it's starting point?
<p>i'm sending a string(sequence of characters) to a function in c++ and then the function 
would receive it in a pointer of char type.
but when i increase the pointer to reach each character it goes out of the string after 19th 
character and just points to somewhere else in my program.
here's the string i'm sending:</p>

<pre><code>\xe1\x0c\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x06google\x03com\x00\x00\x01\x00\x01
</code></pre>

<p>and here's my code:</p>

<pre><code>char* request_process(char *request)
{
     for (int j = 0; j&lt; 27; j++)
     {
        cout &lt;&lt; (request[j] &lt;&lt; 0) &lt;&lt; "\n";
     }
 .
 .
 .    
 }
</code></pre>

<p>after "google" it goes wrong.
so what should i do to have it as (binary)"00000011" and then 'c'? </p>
