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 the use of bitfields & where do we use them?
Output for following program using for loop only * * * * * * * * * * * * * * *
what is the difference between getch() and getchar()?
read an array and search an element
How to reverse a string using a recursive function, with swapping?
write a program to print largest number of each row of a 2D array
What are structural members?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Tell me is null always defined as 0(zero)?
What is f'n in math?
what is the difference between NULL & NUL keywords in C?
Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?