title: Nested Comments in C/C++
body: <p>This is an interview question:-</p>
  
  <blockquote>
    <p>Write a C program which when compiled and run, prints out a message
    indicating whether the compiler that it is compiled with, allows /* */
    comments to nest.</p>
  </blockquote>
  
  <p>The solution to this problem is given below :-  </p>
  
  <p>Sol:- you can have an integer variable nest:  </p>
  
  <pre><code>int nest = /*/*/0*/**/1;
  </code></pre>
  
  <p>if it supports nested comments then the answer is 1 else answer is 0.</p>
  
  <p>How is this working ? I don't understand the variable declaration.</p>