输出所有二进制组合,递归调用,c程序代写
- 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.
- Name your executable bin_str.out
- Your program should accept the binary string as a command line argument
- You MUST solve this program RECURISIVELY
- 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