Hi guys, something confusing me and I want to understand it.

once I open for instance Visual Studio 2019 for C/C++ programming , and start writing code on the IDE but still not compile it, so I just write words -code rows- like when I open word office and just start writing on the empty document .. , what's confusing me when I write on the IDE so the code that I write before compiling it will it be saved to PC or not , what's exactly confusing me like how the IDE can could remind me that there's error like writing x and not int x -data type x- so it works on virtual not on PC memory ... and here's my problem not understanding how IDE can note me that there's errors on my code before compiling my code, it sounds that IDE work on virtual and not on memory ..

so Im not understanding how something virtual could works on PC although it's virtual and not found ... really weird . - I guess here's my miss understanding on the concept virtual in PC programming-

I mean with Virtual - something that's not on PC memory-hardware- and still works on PC like writing code into IDE and IDE correcting you before compiling your code - still you file on virtual mode and not on PC-


thanks