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 |
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What are examples of structures?
What is the function of this pointer?
0 Answers Agilent, ZS Associates,
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Who developed c language?
How can I allocate arrays or structures bigger than 64K?
write a program that accepts 3 numbers from the user. dispaly the values in a descending order.
find largest of 3 no
here is a link to download Let_Us_C_-_Yashwant_Kanetkar
How many levels of indirection in pointers can you have in a single declaration?
0 Answers Agilent, ZS Associates,
what is the similarities between. system call and library function?
4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } a)Comp error b)4425 c)4253 d)3435 e)none