Https://ide.codingblocks.com/s/43171

https://ide.codingblocks.com/s/43171
ques))
Generate all binary strings from given pattern
Given a string containing of ‘0’, ‘1’ and ‘?’ wildcard characters, generate all binary strings that can be formed by replacing each wildcard character by ‘0’ or ‘1’.

ANS=I’m getting 6 but the answer is 8.
Thanks in advance

Hey Aryan, use i+1 instead of ++i in recursive function calls.