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
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What is integer constants?
Write a program to print “hello world” without using semicolon?
What is function in c with example?
Explain the difference between ++u and u++?
What is difference between far and near pointers?
What is 02d in c?
What is a scope resolution operator in c?
What are the different data types in C?
Explain how many levels deep can include files be nested?
Explain logical errors? Compare with syntax errors.
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Difference between goto, long jmp() and setjmp()?
What is malloc return c?
Are the outer parentheses in return statements really optional?