Software Design Engineers in Test - function add a line and return input string.. what is the problem in this prog.
Software Design Engineers in Test SDET FAQ
(Continued from previous question...)
10. Software Design Engineers in Test - function add a line and return input string.. what is the problem in this prog.
Question:
function add a line and return input string..
what is the problem in this prog.
char* addline(char * s)
{
char buf[1024];
int l=strlen(s);
strcpy(buff,s);
buff[l]='n';
return buff;
}
A: No issue with thr program
(Continued on next question...)
Other Interview Questions
|