Search:

Type: Posts; User: laserlight

Search: Search took 0.16 seconds.

  1. Sure, e.g., to iterate over the elements of a 3D...

    Sure, e.g., to iterate over the elements of a 3D array.
  2. And indeed multip[i][j] dereferences the pointer...

    And indeed multip[i][j] dereferences the pointer named multip. The point here is that the conversion of an array to a pointer to its first element is canonical in C. Trying to avoid that by passing a...
  3. I don't see the point of adding an unnecessary...

    I don't see the point of adding an unnecessary level of indirection. In my opinion, multip[j] is (slightly) more readable than (*multip)[i][j]. Furthermore, the expression (*multip)[i][j] [i]can be...
Results 1 to 3 of 3