0

pointer in c++

How much can a C++ pointer navigate memory? What happens if we occupy memory cells with numbers using a loop, does data ruin other running apps?

20th Jan 2021, 2:50 PM
Mehran
Mehran - avatar
1 Answer
+ 4
Nope. You can only access memory allocated to your program, any attempt to access not allowed memory cell will result in runtime error (segmentation fault) . edit : though a pointer can still navigate across any legal memory address of the system, the problem comes when you try to access/write on a memory cell which is not allowed.
20th Jan 2021, 4:29 PM
Arsenic
Arsenic - avatar