title: Array slicing in C
body: <p>In Python, if I wanted to assign the vector <code>x=(1,2)</code> to the first two elements of <code>y=(0,0,0,0)</code>, I would do something like <code>y[:1] = x</code>.  Is there an equivalent in C to assign a <code>double x[2]={1.,2.}</code> to the first two elements of an available <code>double y[4] = {0.,0.,0.,0.}</code>? Or will I have to loop?</p>