About 68,000 results
Open links in new tab
  1. to convert two-dimensional array to one-dimensional

    2d arrays use continous memory, so you can just declare a 1d array and use memcpy. Interesting and good to know. My simple, probably newbie-ish and uncreative algorithm would be: Create new one …

  2. passing a pointer to a 2d array to a function - C++ Programming

    You can force the pointer type using a cast, and that will be a valid pointer, but you cannot then use it as a 2D array. Inside the populate function, C doesn't have the information it need to know how large …

  3. Why do we need to specify column size when writing a 2D array In C??

    Because only the leftmost index can be arbitrary, all other indices must have a fixed size. In other words, all 2D arrays in C must be rectangular, with the same amount of columns for every row.

  4. Passing a 2d array by Reference - C++ Programming

    In C all arrays are passed by reference, that is the variable is the address of the first element of the array. The trouble you may be having in the second program which uses pointer notation is with …

  5. sorting a 2d array by column - C++ Programming

    Similar Threads Subtracting one column in a 2d array from another? By zaihed13 in forum C Programming Replies: 6 Last Post: 10-19-2013, 09:29 AM

  6. copying a 2D array into another 2D array - C++ Programming

    May 21, 2012 · Before the array is sent into another function (and decays into having a sizeof (pointer to data type), get the sizeof (array). Now use your sizeof (data type), to calculate the number of rows, …

  7. 2D char array and pointer - C++ Programming

    If you want a 2D array of char, and need a pointer to that [e.g. you want to modify the content of the strings in an array of strings], then you need to pass the length of the strings.

  8. 2D array filling - cboard.cprogramming.com

    Nov 16, 2012 · Filling up a 2D (or 3D) array. By omnificient in forum C Programming Replies: 1 Last Post: 01-20-2008, 01:22 PM

  9. Delete Rows And Colums Of Array - cboard.cprogramming.com

    You don't actually delete the row or column in a 2D array; you just move the latter part of the data by one element (and, optionally, clear the last row/column). In C, with an array declared as a [rows] …

  10. Making a 2d array (matrix) in a struct - C++ Programming

    Making a 2d array (matrix) in a struct If I'm trying to make a 2d array in a struct, do I have to make the struct a certain size when I write the prototype? I can't explain it very well, but here's what I'm talking …