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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
in func(int list[]: it gives only the address of the value
which was stored in the list.
func (int *list , ....):it gives the value which is stored
in the list
| Is This Answer Correct ? | 0 Yes | 3 No |
What is line in c preprocessor?
What is meant by recursion?
What is the Difference between Macro and ordinary definition?
3 Answers Bosch, Cognizant, College School Exams Tests, Motorola,
What is the total generic pointer type?
program to find the second largest word in a paragraph amongst all words that repeat more thn twice
Explain what are the standard predefined macros?
an algorithem for the implementation of circular doubly linked list
What are formal parameters?
write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1
Explain Doubly Linked Lists?
How to set a variable in the environment list?
how to find out the inorder successor of a node in a tree??