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
What are enumerated types?
What is gets() function?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Can you assign a different address to an array tag?
Why do we use header files in c?
Is null always equal to 0(zero)?
What is strcpy() function?
Difference between macros and inline functions? Can a function be forced as inline?
What is signed and unsigned?
How many types of operators are there in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is openmp in c?
How can I prevent another program from modifying part of a file that I am modifying?
How can you access memory located at a certain address?
Why is C language being considered a middle level language?