Top "Double-pointer" questions

The term "double pointer" is sometimes confusingly used to refer a data type which can point to another pointer.

Assigning memory to double pointer?

I am having trouble understanding how to assign memory to a double pointer. I want to read an array of …

c string pointers malloc double-pointer
Two Dimensional Array Implementation Using Double Pointer

Please consider the following code: #include <stdio.h> #include <stdlib.h> #define NUM_ARRAYS 4 #define NUM_…

c multidimensional-array double-pointer
unsigned char ** to opencv mat

I'm almost there but I can't quite understand how to convert unsigned char ** to a cv::Mat I know that …

c++ image-processing opencv double-pointer
usage of double pointers as arguments

Please find the code snippet as shown below: #include <stdio.h> int My_func(int **); int main() { int …

c double-pointer
How to qsort an array of pointers to char in C?

Suppose I have an array of pointers to char in C: char *data[5] = { "boda", "cydo", "washington", "dc", "obama" }; And I …

c sorting qsort double-pointer
Char ** usage and printing

In C, I am using a char ** to hold a series of strings. Here is my code: char ** c; //now …

c malloc multidimensional-array double-pointer
How to get size of 2D array pointed by a double pointer?

I am trying to get the number of rows and columns of a 2D Array from a double pointer pointed …

c multidimensional-array double-pointer pointer-to-array