How to initialize a char member variable of a class? : <p>I am having trouble assigning value to a character class member:</p>

<pre><code>class Node
{
 public:
    char c;
};

void main(void)
{   
    Node *node;
    node-&gt;c = 'a';
}
</code></pre>
