Computer Science, asked by ONALAVILAS, 3 months ago

Which among the following is Copying function?​

Answers

Answered by SAMYAKMAHINDRAKAR
1

Answer:

plz plz mark as brainlist

Explanation:

. Which among the following is Copying function? Explanation: The memcpy() function is used to copy n characters from the object.

Answered by arshikhan8123
0

Answer:

In C programming, strcpy() is the function used for copying a string from the source to the destination.

Explanation:

Since the options were not listed in the question, I assume that the question is for copying a string in C program.

strcpy() is the function used for copying a string from the source to the destination. The prototype of the function strcpy() is:

char* strcpy(char* destination, const char* source);

There is one more function in C, which copies the memory block.

The memcpy() function is used to copy a memory block from one location to another. The prototype of the function memcpy() is:

void *memcpy(void *dest, const void *src, size_t n);

This function returns a pointer to destination, which is string.

strcpy() is the function used for copying a string.

#SPJ2

Similar questions