pointer-arithmetic
set int of a struct from a memory buffer
I have more of a cosmetic question: I have a memory stream (void *) which i use in the sample as \"cur_ptr\".[详细]
2023-04-11 17:35 分类:问答Pointer Arithmetic on pointers to pointers and the like
Is to well defined to use pointer arithm开发者_Go百科etic on pointers to pointers? eg int a=some_value;[详细]
2023-04-10 20:54 分类:问答needed explanation for a c-program
In a c-book 开发者_如何学JAVAI bought, an exercise program is given as what is the output for the following code snippet?[详细]
2023-04-05 21:21 分类:问答Pointer-Array Interaction w/ null terminator
I was just experimenting with the use of pointers when dealing with arrays and I\'ve become a bit confused with how C++ is handling the arrays. Here are the relevant bits of code I wrote:[详细]
2023-03-29 03:19 分类:问答printf behavior
Take int ptr={10,20,30,40,50} I understand that print(\"%d\", *ptr++); in such a statement evaluation of operators is from right to left.[详细]
2023-03-15 09:21 分类:问答Help me understand this URL decoder:
After playing around w开发者_如何学Goith URL decoding myself, I managed to come up with some ideas that worked - but they weren\'t very efficient. Since URL decoding is a place where severe bottleneck[详细]
2023-03-07 19:20 分类:问答Freeing pointer after pointer arithmetic
My question is very simple one. Say w开发者_C百科e have: char* ptr = (char*) malloc(sizeof(char)*SIZE);[详细]
2023-03-06 08:12 分类:问答C Beginner question: Pointer arithmetic > cleaning up once you are done
I\'m slowly getting the hang of pointers. 开发者_StackOverflow中文版But there are still some questions I have.[详细]
2023-03-04 22:15 分类:问答Pointer Compiler Problems
I haven\'t used pointers in over 3 years and I am very rusty on this topic.I have receive a ton of errors when I compile the following code.The errors are as follows:[详细]
2023-02-16 21:44 分类:问答Clarfication on pointer arithmetic
*(*(p+a)+b) If a*size is added to an address (p), then why is b*size added to *(p+a)? *(p+a) appears to b开发者_StackOverflow社区e the value at that location and adding b*size to it would change its[详细]
2023-02-13 02:19 分类:问答