If I initialize a struct that contains a pointer to itself on stack and then return it, does the pointer point to unmanaged memory?
Consider following:
ReadProcessMemory keeps returning 3435973836
I’m trying to read a memory address in C++ and it keeps returning 3435973836.
I’m not deallocating memory correctly here. Please help me understand what I’m doing wrong
Well it’s a database and I’m trying to deallocate the memory but I’m new to C++ and seem to be doing it wrong. Can someone who can tell just by looking see what I’ve done wrong and correct me. Please let me know how handling this problem should be done.
Does type-casting each element of an array takes less space than copying the array into a new one?
I am currently writing a program where given two input matrices (int8_t and float respectively) I compute the multiplication of the two.
In C, does type-casting each element of an array takes less space than copying the array into a new one?
I am currently writing a program where given two input matrices (int8_t and float respectively) I compute the multiplication of the two.
vector not initializing properly
I am working on my final project for CS class, C++, and I cannot for the life of me figure out this problem. The project is about implementing a Trie, but I don’t think that’s relevant. I think the root of all this lies in memory management. In the template code given
Cpp Memory Issue On Return
Hey I did debugging for hours on this, but I found no explanation for why is it having memory issue on return from main. On exit it doesn’t. I tried debugging and refactoring. It runs on CLion Linux Fedora. Any idea how to resolve it?
C++ – placement of int at non-integer multiple of 4
as far as I know integers for example are placed in memory at integer multiples of their size. Can I access a set of bytes starting at non-integer multiple of sizeof(int) via a pointer as an int? The code below seems to work, producing
Why does a property of a class still exist after the property declaration falls out of scope in the constructor?
I was testing how C++ manages memory and their allocation. I’ve stumbled on something I can’t seem to figure out. I’m sure it has a simple explaination, but the rabbithole on memory in general got to me. So I ask your help.
C: Are static global variables allocated even if related functions are not used?
I’m creating a string utility header for my event structs. It’s meant to be only used for debugging.