bin_str 递归调用


  1.  bin_str.c

binary number is made up of 0’s and 1’s but the input strings you will receive can also contain ‘x”s. An x represents a digit that can be either a 0 or a 1. Your program should display all the possible binary digits that can be formed. For example the string x1x0 could represent either 0100, 0110, 1100, or 1110.

  1. Name your executable bin_str.out
  2. Your program should accept the binary string as a command line argument
  3. You MUST solve this program RECURISIVELY
  4. Examples

    1../bin_str.out 0110 0110

    2../bin_str.out 01×0 0100

    0110 3../bin_str.out xx

    00 01 10 11

minutes) Write a program called bin_str.c that completes a binary number. A