Skip to content

Latest commit

 

History

History
81 lines (51 loc) · 1.53 KB

README.md

File metadata and controls

81 lines (51 loc) · 1.53 KB

Coding-Courses-notes

Introduction

YT Channel: Apna College

Video Playlist: C++ Full Course


Commands & Software


  • Requirements:
    • gcc
      • for windows: choco install mingw
      • for linux: already installed
    • vscode

git clone https://github.com/HiteshKrGaurav/CppCourse_ApniKaksha.git
g++ filenme.cpp -o filenme && ./filename

Important

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

  1. define a constant variable with #define variable_name value

  2. defined variable should be used in function arguments instead of a value

    #define N 1000
    void func1(arr[][N]){}