double-pointer
How to implement an algorithm with pointers and memory allocation in Java
I have an algorithm in C++ and I need to implement something similar in Java. I\'m having trouble with memory alloca开发者_JAVA百科tion. How can I migrate the following snippet for example, from C++ t[详细]
2023-03-22 03:27 分类:问答Return a read-only double pointer
I want to a member variable, which is a double pointer. The object, the double pointer points to shall not be modified from outside the class.[详细]
2023-03-12 02:22 分类:问答How to pass the address of a double pointer to another double pointer
How can I pass the address of a double pointer to an other? I have this code and it\'s working correctly only if i set the commented line. Why the size is different?[详细]
2023-03-05 23:56 分类:问答Initialisation from incompatible pointer type warning. Can't find the issue
I\'m assuming this warning is crashing my app. I\'m using objective-c for an iOS app. Xcode doesn\'t give a stack trace or anything. Not helpful.[详细]
2023-02-01 18:20 分类:问答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\" };[详细]
2023-01-11 10:53 分类:问答Linked list head double pointer passing
I have seen this in some book/ tutorial. When you pass in the head pointer (of linked list) into a function, you need to pass it as a double pointer.[详细]
2023-01-08 06:00 分类:问答How do I properly turn a const char* returned from a function into a const char** in C?
In short, I would like to do this: const char **stringPtr = &getString(); However, I understand that you can\'t & on rvalues. So I\'m stuck with this:[详细]
2022-12-29 10:39 分类:问答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 strings and store it.[详细]
2022-12-20 05:57 分类:问答