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
Can you pass an entire structure to functions?
What are the advantage of c language?
What is action and transformation in spark?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
How will you write a code for accessing the length of an array without assigning it to another variable?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What is wrong with this code?
Explain what is meant by 'bit masking'?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Tell us the use of fflush() function in c language?
explain what are actual arguments?
What is conio h in c?
Can we declare function inside main?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code