title: Accessing a character pointer
body: <pre><code>#include&lt;stdio.h&gt;
  
  char* output;
  int main() {
  output="Hello";
  output[0]='r'; // This line shows error . Please assist as to why 
  printf(output);
  return 0;
  }
  </code></pre>
  
  <p>Please tell the correct way to do so . I know this might be a stupid question for most of the people , but I wanted to perform an operation like this (the line with comment ) ,so this is just a short example of the problem that i am facing.</p>
  
  <p>Thank You</p>