title: How do you use a try-catch in C (or the equivalent in C)
body: <p>I need to figure out how to use a try catch equivalent to check if the user input too many characters, input a sign besides "+, -, *, /, or %" or if the user input something besides a 1 or 0 (in bits1 or bits2).</p>
  
  <pre><code>    printf("This program will do the equation (+, -, *, /, %) which a user will input, a 7bit binary number, a sign, and then another 7bit binary number and print the answer.\n\n");
  
      printf("Please enter the equation.\n");
      scanf("%7s%c%7s", bits1, &amp;sign, bits2);
  </code></pre>