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 time and space complexities of merge sort and when is it preferred over quick sort?
What is the Purpose of 'extern' keyword in a function declaration?
What type of function is main ()?
What is an object?
program to find which character is occured more times in a string and how many times it has occured? for example in the sentence "i love india" the output should be i & 3.
Is this program statement valid? INT = 10.50;
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What is array within structure?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
what is the role you expect in software industry?