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
Explain what is dynamic data structure?
which type of aspect you want from the student.
What are formal parameters?
Explain how can a program be made to print the name of a source file where an error occurs?
main() { printf("hello"); fork(); }
What is the use of a ‘ ’ character?
hi send me sample aptitude papers of cts?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What do you mean by a local block?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
how to introdu5ce my self in serco
How many levels of indirection in pointers can you have in a single declaration?
Write a program to print all permutations of a given string.
Can you please explain the difference between strcpy() and memcpy() function?
How can I change the size of the dynamically allocated array?