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 ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ganesh bankar
its compilers job to identify what is the size the array
depending upon which array is passed to the function.
| Is This Answer Correct ? | 7 Yes | 1 No |
What is wild pointer in c?
how to add our own function in c library please give details.?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is a C array and illustrate the how is it different from a list.
How many levels of pointers can you have?
What is self-referential structure in c programming?
Write a C program in Fibonacci series.
Write a programme to find even numbers without using any conditional statement?
3 Answers ADD Software, Infosys,
Is flag a keyword in c?
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?
write a program to copy the string using switch case?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402