What is memmove?



What is memmove?..

Answer / 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

More C Interview Questions

What is the purpose of macro in C language?

0 Answers   Fidelity,


1. What will be the output of the following programs. a) #include <stdio.h> Main() { Int x=4; While(x==1) { X=x-1; Printf(ā€œ%dā€,x); --x; } }

7 Answers   CSC,


What is the advantage of a random access file?

0 Answers  


What happens if header file is included twice?

0 Answers  


Where does the name "C" come from, anyway?

0 Answers   Celstream,






if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND CORRESPONDING VALUE FROM ASCII TABLE

1 Answers  


What is the benefit of using const for declaring constants?

0 Answers  


what is Structural oriented language? give some example of this language.....?

1 Answers  


what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 Answers  


Would you rather wait for the results of a quicksort, a linear search, or a bubble sort on a 200000 element array? 1) Quicksort 2) Linear Search 3) Bubble Sort

3 Answers  


#include<stdio.h> void main() { char *str; long unsigned int add; str="Hello C"; add=&str[0]; printf("%c",add); } What is the output?

4 Answers   Infosys,


what are the various memory handling mechanisms in C ?

4 Answers   HP,


Categories