YT Channel: Apna College
Video Playlist: C++ Full Course
- Requirements:
- gcc
- for windows:
choco install mingw
- for linux:
already installed
- for windows:
- vscode
- gcc
git clone https://github.com/HiteshKrGaurav/CppCourse_ApniKaksha.git
g++ filenme.cpp -o filenme && ./filename
Hindi Digits:
"१२३४५६७८९०"
add a empty line at the end to avoid warning: no newline at end of file
default value cannot be assigned in declaration of function
❌
int add(int x = 0, int y = 0);
❌
🗸🗸int add(int x, int y);
🗸🗸int add(int x = 0, int y = 0){ return 0;}
To pass matrix to a function
define a constant variable with #define variable_name value
defined variable should be used in function arguments instead of a value
#define N 1000
void func1(arr[][N]){}