coderz.py

Keep Coding Keep Cheering!

References in C++

C++ references allow you to give a variable a second name that you can use to read or modify the original data stored in that variable. Once a reference has been initialized with a variable, it can be referred to using either the variable name or the reference name. For instance, A variable can be […]

October 18, 2022 | C++ | No comments

const keyword in C++

Const keyword define constant values that cannot change while the program is running. A const variable must be assigned a value when it is declared. If we try to change its value after it has been initialized, we will get a compilation error. Use of const keyword with different parameters: Variables Pointers Function arguments and […]

October 16, 2022 | C++ | No comments

Advertisement