Answer Posted / kalyani.p.v
call by value:The called function sends its value as
argument to calling function.
Call by reference:The calling function sends address of
variable to the called functin.
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What functions are used for dynamic memory allocation in c language?
What are the main characteristics of c language describe the structure of ac program?
What’s a signal? Explain what do I use signals for?
Why pointers are used in c?
What happens if a header file is included twice?
What is oops c?
What are the keywords in c?
What is a pointer in c plus plus?
Is null always equal to 0(zero)?
What is the best way to store flag values in a program?
What is exit() function?
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); }
What are the advantages of using Unions?
What are the types of assignment statements?
Can you please explain the difference between malloc() and calloc() function?