Sunday, 19 February 2017

Can you write the code in strcpy() into single line


1.     Can you compact the code in strcpy() into one line?

  

Ans:


 mystrcpy( char *t, char *s)

 {

   while (*t++ = *s++);

 }

0 comments:

Post a Comment