vsc for c code example
Example 1: how to run c program from visual studio terminal
Fire up the terminal from VS code
Use the command "gcc filename.c" to compile the program
Use the command ".\a.exe" to run the program from the terminal
P.S. Remove "" before exceuting
Example 2: c vs c
C++ compiles into machine code, while C
C++ requires you to handle memory manually, but C
C
C++ can be used on any platform, though it was originally designed for Unix-based systems. C
C++ can create stand-alone and console applications. C
Example 3: c vs c
1.C++ compiles into machine code, while C
2.C++ requires you to handle memory manually, but C
3.C
4.C++ can be used on any platform, though it was originally designed for Unix-based systems. C
5.C++ can create stand-alone and console applications. C