@@ -8,7 +8,11 @@ Topic Cover:
8
8
9
9
https://www.youtube.com/watch?v=pX6LufLso2M&list=PL0gIV7t6l2iIsR55zsSgeiOw9Bd_IUTbY&index=10
10
10
11
- lecture goibg to start: 9,
11
+ https://www.youtube.com/watch?v=GtsBZ5e1-cE&list=PL0gIV7t6l2iIsR55zsSgeiOw9Bd_IUTbY&index=12
12
+
13
+ https://www.youtube.com/watch?v=N4gpIkQKUbc&list=PL0gIV7t6l2iIsR55zsSgeiOw9Bd_IUTbY&index=15
14
+
15
+ lecture goibg to start: 9, 10, 12, 14,
12
16
13
17
//////////////////////////////////////////////////////////////////////////////////////////
14
18
@@ -21,3 +25,39 @@ Define vector
21
25
Array size is fixed and decide at compile time. But vector size is not fixed size it can be change with "arr.resize(20)".
22
26
23
27
2> Inline function can not be recursive.
28
+
29
+ Reference:
30
+ -----------
31
+ 1> This is the alias of a variable.
32
+ int a = 10; Below Both the case a and b address is same.
33
+ int &b = a;
34
+
35
+ int &c; => Error becz there is no varibale for alias.
36
+
37
+ 2> int &j = 6 ==> Error becz we can not refer to constant But we can refer to const int &j = 6
38
+
39
+ 3> int &j = i + j ===> Error above resons const int &j = i + j
40
+
41
+ 4> NEVER EVER RETURN LOCAL VARIABLE REFERENCE.
42
+
43
+ Default Paramter and Function Overloading:
44
+ -------------------------------------------
45
+ 1> If we are not pasing any parameter at the time of call system will take default value mention in function declaration.
46
+
47
+ 2> i> All the parameter right of default parameter should be defaulted.
48
+ Ex: void foo(int, double = 1, char *) // Error becz char * shuld be defaulted
49
+ void foo(int, double = 1, char * = NULL) //OK
50
+ ii> Default argument can not be redefind.
51
+ Ex: void foo(int, double = 1, char * = NULL) //OK
52
+ void foo(int, double = 2, char * = NULL) //Error redefind
53
+ iii> All non-default parameter should mention at the time of function call.
54
+
55
+ 3> Always use default parameter in headerfile.
56
+
57
+ 4> Function Overloading is called static Polymerprisim
58
+
59
+ 5> Function Binding happen at compile time in function Overloading.
60
+
61
+ 6> In Function Overloading different return type in overloading function is not possible.
62
+
63
+ 7>
0 commit comments