This repository contains DSA assignments and self-practice problems implemented in C and C++.
-
Compile the C/C++ program:
gcc filename.c -o output # for C g++ filename.cpp -o output # for C++
-
Run the program:
./output
If you are using Windows with VS Code:
-
Make sure gcc / g++ is installed and added to PATH
- Running
gcc --versionorg++ --versionin terminal should work.
- Running
-
Open the
.cor.cppfile in VS Code. -
Press:
Ctrl + Shift + B
This will compile and run the current file automatically using the configured build task.
[!
⚠️ Ifgcc/g++is not in PATH, the shortcut will not work.]