Horje
memcpy c++ usage Code Example
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)
  	
}




Cpp

Related
how to iterate throguh a string in c++ Code Example how to iterate throguh a string in c++ Code Example
number to binary string c++ Code Example number to binary string c++ Code Example
bit c++ Code Example bit c++ Code Example
restting a queue stl Code Example restting a queue stl Code Example
flags for g++ compiler Code Example flags for g++ compiler Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8