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 getch() function in C program.. difference b/w getch() and getche()??
29 Answers HCL, IBM, Infosys, TCS, Wipro,
Is a house a shell structure?
Why c is called a mid level programming language?
What is the real time usage volatile?
without using arithmatic operator solve which number is greater??????????
what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits
What are the features of c languages?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
0 Answers Sikkim Manipal University,
What is structure data type in c?
program to find the second largest word in a paragraph amongst all words that repeat more thn twice
How can you access memory located at a certain address?
What standard functions are available to manipulate strings?