what is the differance between pass by reference and pass
by value.
Answer Posted / shalini
In the pass by reference we are using the pointer that is
here, we are passing only address where value is stored. but
in the case pass by value we are using ordinary variable
that is pass the value itself. here the value cannot be
changed in calling function and returning back to called
function but this is possible in call by reference
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Difference between exit() and _exit() function?
What are the advantages and disadvantages of a heap?
What are the advantages of using macro in c language?
write a progrmm in c language take user interface generate table using for loop?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Explain union. What are its advantages?
Compare array data type to pointer data type
How do I send escape sequences to control a terminal or other device?
Difference between malloc() and calloc() function?
What is the difference between exit() and _exit() function?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Why does the call char scanf work?
Why static is used in c?
Can we use visual studio for c?
What are data types in c language?