Just a design/optimization question.When do you store pointers or objects and why?For example, I believe both of these work (barring compile errors):
Sorry for messing you all with the C stuff. The write() takes void * buff. And i need to call this function from main() by giving the required data.
I\'m a programming student and I don\'t understand what is the problem with this code: #include <stdio.h>
I\'m getting a really annoying error, saying I\'m getting a null pointer exception but there\'s an if statement to check to see if the text is null before proceeding:
The below program gives me an error in the intialisation (*a)[5]=((*)[])&v;. When I don\'t type at that line then I\'m still getting the error.
What does \'base\' mean in JNA\'s Pointer.getPointerArray(long base) Pointer.getStringArray(long base)
I am new to C programming, and have a question about the following couple lines of code. This takes place within the context of a creating a linked list of struct film:
I\'m just wondering whether this is \"good\" code for a C89 program. obj_ptr = (obj*) (ptr1 || ptr2); Essentially what it does (atleast in GCC on my computer) is set obj_ptr as ptr1 if ptr1 != NULL
I\'m trying to learn C now, I\'m coming from Java and there is some stuff that is new to me. I want to print a string and send an int and a string(char array) to another method. But I keep getting so
In some maintenance of some multitouch \"drawing on screen\" code, I met a bug relative to how references to touches instances should be set between touchesBegan:withEvent:, touchesMoved:withEvent: an