pointers
C++ linked list help (pointers)?
template <typename T> class LinkedNode { public: T data; LinkedNode<T> *next; LinkedNode<T> *prev;[详细]
2023-04-12 12:20 分类:问答Basic pointers and qsorting
I\'m a beginner when it comes to pointers and recently for an assignment I was asked to write a function that would take in beginning and end pointers to an array and then sort them with qsort. Here i[详细]
2023-04-12 11:05 分类:问答Pointers - Difference between Array and Pointer
What is the difference between a, &a and th开发者_Python百科e address of first element a[0]? Similarly p is a pointer to an integer assigned with array\'s address.[详细]
2023-04-12 09:41 分类:问答can someone explain the last argument of this function for me?
it\'s a constructor for a hash, but i don\'t understand the last argument. what is it doing? std开发者_C百科::fill(hash_table_, hash_table_ + HASH_TABLE_SIZE, (node *)NULL)[详细]
2023-04-12 09:25 分类:问答allocation of a pointers to fixed size arrays
I have 2 doubts regarding basics of pointers usage. With the following code int (*p_b)[10]; p_b = new int[3][10];[详细]
2023-04-12 06:33 分类:问答Memory address of a memory address in a machine? (C language)
Today out of curiosity, i tried something very weird: The Code : int num = 2; int * point = # printf(\"%p\\n\" , &point);[详细]
2023-04-12 01:51 分类:问答Extracting 2 pointers typecasted into (void*)
I\'m trying to pass 2 pointers as an arguement for another function typecasted into (void*) How do I seperate those two in the final function?[详细]
2023-04-12 00:32 分类:问答Global Variable Pointer to array in Sourceboost C
I declared these global variables: volatile unsigned char BUFFER[7]={0,0,0,0,0,0,0};//to get all data volatile unsigned char *PTR=&BUFFER[0];//points t开发者_开发百科o start address[详细]
2023-04-11 23:44 分类:问答Need assistance in understanding this code using malloc and pointers
Here is a little snippet of code from Wikipedia\'s article on malloc(): int *ptr; ptr = malloc(10 * sizeof (*ptr)); // Without a cast[详细]
2023-04-11 21:57 分类:问答making dynamic array using Type** &x
With respect to the following code snippet for making a dynamic array 开发者_C百科template <class Type>[详细]
2023-04-11 21:50 分类:问答