C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 7)
7.
Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
Call by value
Call by reference
Default arguments
Call by pointer
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
22 comments Page 1 of 3.

Sowmya said:   1 decade ago
How come default arguments can you please explain ?

Gaurav Walia said:   1 decade ago
Here it means that suppose you have not given any argument in the function call so by default it would take a value you already specified. This is called function with default parameters.

Jaydeep Pandya said:   1 decade ago
But how to apply default parameters.

Sri said:   1 decade ago
Actuvally primitive data types are used call by valu where as objects are passed by call by reference. About default arguments if we are not give the arguments compiler set the default arguments.

Harish said:   1 decade ago
Difference b/w call by reference and call by pointer ?

Saroj said:   1 decade ago
Call by reference means call by address thats it.

Vish said:   1 decade ago
Actually I made the guess by thinking that call by reference and call by pointer is one and the same thing and concept of call by value is clear from which we can easily conclude that answer will be the option 'C'.

Venkatareddy said:   1 decade ago
Difference between call by value & call by pointer & call by reference perfect answer give me?

Devyashish Mayank said:   1 decade ago
For call by value it means we pass a certain value (a no. ) to the function as parameter. While in case of call by pointer it means that we pass a pointer as an argument to it which points to certain address. In case of call by reference we simply provide an address to the function as an argument or parameter to get the desired result.

Lachu said:   1 decade ago
The difference between the call by value and call by reference are :The original value is not affected in call by value. That is only copies the value. Original value is affected in call by reference. That is value is changed after calling it.


Post your comments here:

Your comments will be displayed after verification.