title: How to split string taken as input and I want to separate it with commas like in the output
body: <pre><code>    char exp[50];
  //  printf("Enter the postfix expression :");
  //  scanf("%s", exp);
  </code></pre>
  
  <p>When the input is <code>567+*</code>, the desired output is as shown.
  I need  to separate the input string in C; how to do that?</p>
  
  <p>Output</p>
  
  <pre><code>5,
  5,6,
  5,6,7,......
  </code></pre>