Jul 17, 2024
code.visualstudio.com
.C Files
)..c
extension.g++ --version
.clang --version
(install via xcode-select --install
if needed).gcc -v
(install via sudo apt-get update
and additional commands).mingw-w64-install.exe
and download from SourceForge.Terminal
> Configure Default Build Task
.tasks.json
file.#include <stdio.h>
(for input/output functions).int main() {
return 0;
}
return 0;
for success, return 1;
for error.printf
to print to console.
printf("I like pizza");
\n
.
printf("I like pizza\nIt's really good");
Run Code
or use the Run button in VS Code.print("This will cause an error");