Skip to main content

Posts

Showing posts with the label pass

C++ Arrray in Method Parameter Beginner Programming Visual Studio

Animated Gif Array in function Parameter C++ Array in Function parameter There is two way of accessing values of variables and passing values in function argument, first one is pass by value and second one is pass by reference . Reference variable is another name for a existing variable. Once a reference variable is initialized the reference name may be used to refer to the variable. A reference must be initialized when it is created.You can't have NULL references. You must always be able to assume that a reference is connected to a legitimate piece of storage.Once a reference is initialized to an object, it cannot be changed to refer to another object. & operator use to declare reference variable which is use to store variable value, you can access the value of the variable by using original variable name or by using the reference variable. Syntax of Reference  variable  is very simple //variable initialization int vari = 10; //simp...

C++ Member Initializer Beginner Programming

C++ Member initializer Animated gif example  Member initializer C++ Member initializer for Beginners Lecture

C++ Pointers Beginner Programming

C++ Pointers Animated gif example  Pointers * C++ Pointers* for Beginners Lecture