So, I have this:
int a[4] = { 0, 1, 2, 3 };
And then I want to create a new int array:
int b[4];
What is the easiest way to do b [] = a []?
memcpy(b, a, sizeof(int) * 4);
Source: https://habr.com/ru/post/1744681/More articles:MySQL subprocess - mysqlJava generics - getting type - javaASP.NET Membership - Login Control - TextBox Focus - MembershipWhere do I place the "Default.png" startup image in my iPhone application project project? - iphoneAndroid: EditText with custom keyboard - androidJavaScript prototype question - javascriptAn array with several types? - arraysHow to overlay direct3d in directshow - c ++Is there a way to parse XML through SAX / DOM with line numbers available behind node - javaAndroid 2.1 running gesture captured in text mode, but still the context menu opens - androidAll Articles