[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Interview Questions and Answers :: Cavium Networks

5. Write a program to implement the memcpy functionality.

Answer:

void ownMemCpy(void *dest, void *src, size_t n)
{
char *src_l = (char *)src;
char *dest_l = (char *)dest;

for ( int i=0; i dest_l [i] = src_l [i];
}

Post Your Answer Here:      Public      Private

Rate This: +1 -1
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here