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
How do you print only part of a string?
What are the advantages of using linked list for tree construction?
How can I do graphics in c?
how to count no of words,characters,lines in a paragraph.
What is the use of function overloading in C?
How can a program be made to print the line number where an error occurs?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Explain how do you search data in a data file using random access method?
The file stdio.h, what does it contain?
What is a function simple definition?
What is the difference between formatted&unformatted i/o functions?
Explain how do you print an address?
What are the two types of structure?
What is static volatile in c?