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
Where in memory are my variables stored?
What is quick sort in c?
Do you know the use of fflush() function?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is the translation phases used in c language?
What is s or c?
What are the types of type qualifiers in c?
How can I handle floating-point exceptions gracefully?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
How can I change the size of the dynamically allocated array?
Explain what’s a signal? Explain what do I use signals for?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Which is an example of a structural homology?
Are the variables argc and argv are local to main?
What is the use of pragma in embedded c?