title: Can you use a while loop inside a case in switch statement in C?
body: <p>This might be a <strong>really</strong> stupid question, and if it is, please excuse me for it, but I have been looking for an answer before and I haven't found anything. Is it possible to write something like </p>
  
  <pre><code>case 'i':
      do
      {
          root=insert(root,code[1]);
          scanf("%s",code);
      }while (code[0]=='i');
      break;
  </code></pre>
  
  <p>in C? Thank you for your answer and sorry again if this is a stupid question. Have a nice day :)</p>