how does a general function , that accepts an array as a
parameter, "knows" the size of the array ?
How should it define it parameters list ?
Answer Posted / ilana
one option :
myfunc (int my_array[], int n ) { ...}
another option:
myfunc (int *my_array, int n ) { ...}
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is this infamous null pointer, anyway?
Is there a way to jump out of a function or functions?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
What is the sizeof () operator?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Can we use visual studio for c?
What is the modulus operator?
What is #include stdio h?
define string ?
What is wild pointer in c with example?
What does d mean?
what is the different bitween abap and abap-hr?
What is the role of this pointer?
What are the uses of null pointers?
What is structure padding in c?