what is the difference between : func (int list[], ...) or
func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer
Answer Posted / vimal
Nothing,because ultimately pointer to the first element of
array is send to the function,therefore using both method
changes made in called function will affect the calling
function. In one first you indirectly reference the pointer
and in other you directly reference the pointer.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain what is the difference between the expression '++a' and 'a++'?
What is wrong with this statement? Myname = 'robin';
which is an algorithm for sorting in a growing Lexicographic order
Explain how are 16- and 32-bit numbers stored?
How do c compilers work?
What is an array in c?
Why is c so popular?
What is volatile c?
Why is c called c not d or e?
What is strcmp in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Why clrscr is used in c?
Explain 'far' and 'near' pointers in c.
What is the function of this pointer?
Describe the modifier in c?