char a[5] = {'a', 'b', 'c', 'd', 'e'}; char b[2]; memcpy(b, a, 3 * sizeof(*x)); Copy

C can effectively slice an array using the `memcpy()` function. The first argument is the array to copy the slice to. The second argument is the array to copy the slice from. The third argument is the size of the desired number of elements to slice. This example slice will return ['a', 'b', 'c'].

i