Answers for "memcpy c++ usage"

C++
1

memcpy c++ usage

#include<cstring> // or string.h
int main(){
	char a[4],b[]={"hello"};
  	memcpy(a,b,strlen(b)*sizeof(char));//destination,source,size*sizeof(type)
  	
}
Posted by: Guest on April-13-2021
1

memcpy library cpp

#include <cstring>
Posted by: Guest on December-09-2020

Browse Popular Code Answers by Language