title: Assigning values to a string pointer
body: <p>I am currently analysing the char and string datatypes. For <code>char</code> data types, the following code snipped holds good:</p>
  
  <pre><code>char value = 'a';
  char value1[] = "Good";
  char* value2 = "Good";
  </code></pre>
  
  <p>For strings,</p>
  
  <pre><code>string strValue = "Good";
  string strVal[3] = {"Good","Better","Best"};
  </code></pre>
  
  <p>But the assignment below throws the compilation error:</p>
  
  <blockquote>
    <p>"error: scalar object strPtr requires one element in initializer"</p>
  </blockquote>
  
  <pre><code>string* strPtr = {"Good","Better","Best"}
  </code></pre>
  
  <p>So, how to assign values to above <code>string*</code> initially?</p>
  
  <p>Thanks,
  Udhai</p>