Smart keypad recursion

You will be given a numeric string S. Print all the possible codes for S.

Following vector contains the codes corresponding to the digits mapped.

string table[] = { " ", “.+@$”, “abc”, “def”, “ghi”, “jkl” , “mno”, “pqrs” , “tuv”, “wxyz” };

For example, string corresponding to 0 is " " and 1 is “.+@$”

Input Format
A single string containing numbers only.

Constraints
length of string <= 10

Output Format
All possible codes one per line in the following order.

The letter that appears first in the code should come first

solution link: https://ide.codingblocks.com/s/288293

one test case is not passing

do not add this condition
if(digit==0)

{

    generate_names(in,out,i+1,j);

}

since for digit = 0
u have a space in the keypad array