Decision making is one of the most important concepts of computer programming. As the name suggests “Decision Making” , we means to state that we will be making certain decisions to carry out different operations. These decisions making strategies are same as we come across in our daily life. But here we will be using […]
Category: C++ Tips
Using call by value method, only the copies of actual arguments is passed to the called function. By default, C++ uses call by value to pass arguments . The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function.
Going for an interview and worried? Do not panic. I have brought something useful for you. In most technical interviews candidates are asked to solve programming questions. You are given a short period of time for solving them. Most of the time they will not ask you to solve a lengthy questions having a large […]
1. The complexity of linear search algorithm is a. O(n) b. O(log n) c. O(n2) d. O(n log n)
The call by reference method of passing arguments to a function copies the reference of an argument into the formal parameter. Inside the function, the reference is used to access the actual argument used in the call. This means that changes made to the parameter affect the passed argument.
The call by pointer method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. This means that changes made to the parameter affect the passed argument.