[Solved] Exception thrown: read access violation. **dynamicArray** was 0x1118235. occurred
There are multiple issues with your program. Let me list all of them one by one. As mentioned in one of the comments, You are immediately deallocating memory just after you allocated it. Definitely this will result in a segmentation fault or memory access violation when you access deallocated memory. When you allocate the memory … Read more