Home / MCQ Bank / Computer
Computer Arrays And Strings

void *memcpy(void *dest, const void *src, size_t n) What does the following code do?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • copies n characters from src to dest

Related Computer Questions

In HBase, what is the purpose of the HBase MultiVersion Concurrency Control (MVCC)? What is the significance of NiFi's "PutHDFS" processor? In JDBC, what is the purpose of the `ResultSet` interface? How many times is the function recursive_min_element() called when the following code is executed? int min_of_two(int a, int b) { if(a < b) return a; return b; } int recursive_min_element(int *arr, int len, int idx) { if(idx == len - 1) return arr[idx]; return min_of_two(arr[idx], recursive_min_element(arr, len, idx + 1)); } int main() { int n = 10, idx = 0, arr[] = {5,2,6,7,8,9,3,-1,1,10}; int min_element = recursive_min_element(arr,n,idx); printf("%d",min_element); return 0; } What is the correct way to declare a constant in C#?