What is the difference between pass by reference and pass by
value?

Answer Posted / sravanthi

pass by reference is nothing but a value is called by using
its reference value i.e., its address value where as pass by
value is that which is called by its value initialized.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is abstraction needed?

697


What is class and example?

733


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1310


How do you define social class?

730


Can you explain polymorphism?

748






What does sksksk mean in text slang?

1761


How many human genes are polymorphic?

716


What is object in oops?

769


Which type does string inherit from?

767


What is encapsulation in ict?

751


officer say me - i am offered to a smoking , then what can you say

1750


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1801


What is static modifier?

765


What is data binding in oops?

763


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2307