I’m new to coding and recently I came across a problem that my code doesn’t work unless I save that first so is it necessary to save a code every time I make a change in a code.(vscode)(c)
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
No you don’t. You can enable autosave:
File > Auto Save
Usually, C and C++ are compiled, i.e. the file(s) with the source code need to go through a compiler to get translated to machine code. So, the program source needs to be saved first before it can go into the compiler, yes.
Most IDEs, like VSCode, will save when you ask them to compile, because that’s useful assistance to you.