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 |
Is python a c language?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
how to find a 5th bit is set in c program
Explain why can’t constant values be used to define an array’s initial size?
What is header file definition?
ASCII stands for
write a program whose output will be- 1 12 123 1234
How to reverse a string using a recursive function, with swapping?
Explain the difference between ++u and u++?
What is a function simple definition?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
how to print 2-D array using a single for loop?
2 Answers Mind Tree, TCS, Value Labs,