Recursive Function

1. Find output for following recursive function :

int main()
int i=32242,j=find(i);
int find(int j)
j = j%10 + find(j/10);
printf(" %d ",j);
return j;

2. What is the problem with following code :

char* AddnewlinetoString(char *s)
char buffer[1024];
buffer[strlen(s)-1] = 'n';
return buffer;

Questions by iammilind   answers by iammilind

Showing Answers 1 - 2 of 2 Answers

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions