DEV Community

Discussion on: Pointer in C/C++

Collapse
 
mh_shifat profile image
5hfT

When i ran the same code in different online compilers I found the same result in case of increment of pointer.

Collapse
 
pentacular profile image
pentacular

That just means you haven't tried hard enough. :)

Tuming on asan in gcc will do the trick.

You could also try using cint, an interpreter.

Or ...

Collapse
 
sandordargo profile image
Sandor Dargo

While I usually use coliru for small sketches, if I want to try many compilers with different versions I go to wandbox.