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
How do you search data in a data file using random access method?
What is struct node in c?
What is the method to save data in stack data structure type?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is the significance of an algorithm to C programming?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is difference between array and pointer in c?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
Is boolean a datatype in c?
What do you mean by a sequential access file?
What are the types of data types and explain?
Explain null pointer.
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How can I do peek and poke in c?