memory-address
Printing same physical address in a c program
Is there is a way toprint the same physical address in these programs (while using the shared memory concept) rather than printing different logical addresses?[详细]
2023-02-16 08:33 分类:问答One memory location in a computer stores how much data?
Assume 32 Bit OS. One memory location in a computer stores how much da开发者_如何学编程ta? Whats the basic unit of memory storage in a computer?[详细]
2023-02-15 08:53 分类:问答Disable randomization of memory addresses
I\'m trying to debug a binary that uses a lot of pointers. Sometimes for seeing output quickly to figure out error开发者_如何学编程s, I print out the address of objects and their corresponding values,[详细]
2023-02-15 00:20 分类:问答vxWorks 6.8 mapping physical to virtual memory
This is my first question here :). I been trying for while now to map physical memory to virtual memory in vxWorks 6.8 with no success,[详细]
2023-02-13 23:45 分类:问答How to send and receive memory addresses via a socket in C?
I want to send/receive a memory address via a socket in C. What I have is the following: void *ptr = malloc(122); /* So the pointer points to some valid address */[详细]
2023-02-12 19:12 分类:问答trouble with memory allocation for a class member vector, given an array of objects of that class?
My basic program structure is this: class B1 { vector <someStruct> aStruct; //some struct contains a vector of \'someotherStruct\'s, etc[详细]
2023-02-12 07:17 分类:问答could not understand the behavior of read system call
So this is the code I am trying to run: #include<fcntl.h> #include<stdio.h> #include<errno.h>[详细]
2023-02-07 17:50 分类:问答Why is address of char data not displayed?
class Address { int i ; char b; string c; public: void showMap ( void ) ; }; void Address :: showMap ( void ) {[详细]
2023-02-07 16:43 分类:问答Inquiry on printf
when we print an address of a variable, which address gets printed? if it is virtual memory, then why is it so?[详细]
2023-02-05 22:31 分类:问答this pointer and member function address
I\'m trying to get the address of a member function, but I don\'t know how. I would appreciate if somebody could tell me what I\'m doing wrong. As you can see in my example below, neither (long)&g[详细]
2023-02-04 08:08 分类:问答