Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
Recursive Function
int main()
{
int i=32242,j=find(i);
}
int find(int j)
{
if(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];
strcpy(buffer,s);
buffer[strlen(s)-1] = 'n';
return buffer;
}
Profile Answers by iammilind Questions by iammilind
Questions by iammilind answers by iammilind
Related Answered Questions
Related Open Questions