Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C pointer

Name: Anonymous 2012-09-18 17:01

Let's say i've allocated memory for a dxd-matrix (displayed as a d^2 vector) like this:

double* A  = calloc(d*d, sizeof(double));

Now i want to set the whole vector at one, like

" &A  = {0,1,2,3}; "

But isn't working, is there a method setting the whole vector at once without going through every entry A[i] i=0,...,3?

Thank you!

Name: Anonymous 2012-09-20 0:56

Damn you are so retarded.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List