Answer Posted / rekha
"memmove" can safely handle the situation where the source
string overlaps the destination string
an example
ptr = memmove( s1, s2, N );
"memmove" copies exactly N characters from the string "s2"
into the area of memory pointed to by "s1". Unlike the
function "strncpy", "memmove" does not check for the
terminating '\0' of string "s2"; it simply copies N
characters. It does not put a terminating '\0' on the end of
string "s1".
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Who developed c language?
What are the types of operators in c?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
largest Of three Number using without if condition?
What will be your course of action for a push operation?
How can I change the size of the dynamically allocated array?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is quick sort in c?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is "Hungarian Notation"?
Compare interpreters and compilers.
Can we assign integer value to char in c?
What are the disadvantages of external storage class?
How can you find the exact size of a data type in c?
Why pointers are used in c?