what is the differance between pass by reference and pass
by value.

Answer Posted / kiran

In Pass-by-value, changes made in the formal parameters will not reflect in actual parameters and vice-versa. Where as In Pass-by-reference, changes made in the formal parameters will reflect in actual parameters and vice-versa.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does calloc stand for?

641


What is the g value paradox?

636


What is #include conio h?

584


Explain how can you be sure that a program follows the ansi c standard?

852


What is the difference between arrays and pointers?

627






Are enumerations really portable?

588


Write a function that will take in a phone number and output all possible alphabetical combinations

592


Distinguish between actual and formal arguments.

581


What is s or c?

586


Is array name a pointer?

597


Write programs for String Reversal & Palindrome check

592


What are dangling pointers? How are dangling pointers different from memory leaks?

611


What are nested functions in c?

558


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2640


What are directives in c?

537