What is the output of the below mentioned code snippet?
void goo(char *p)
{
if( p[0] = = ’\0’)
return;
goo(p+1);
goo(p+1);
printf("%c", p[0]);
}
main()
{
goo("123");
}
- $3$ $3$ $2$ $1$ $3$ $2$ $1$
- $3$ $2$ $3$ $1$ $3$ $2$ $1$
- $3$ $3$ $2$ $3$ $3$ $2$ $1$
- $3$ $3$ $3$ $1$ $3$ $3$ $2$