N
naren
Iam not getting the correct pros and cons of the strcpy() and memcpy()
some where i read for short strings strcpy is faster and for large
strings memcpy is faster..
in strcpy() there is a single pass over the data...but in memcpy()
there are 2 passes..one is for strlen() and another is for copying..
but how memcpy will be faster for large strings?
Can anybody please clear my doubt
some where i read for short strings strcpy is faster and for large
strings memcpy is faster..
in strcpy() there is a single pass over the data...but in memcpy()
there are 2 passes..one is for strlen() and another is for copying..
but how memcpy will be faster for large strings?
Can anybody please clear my doubt