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
Where are c variables stored in memory?
How can you find out how much memory is available?
find the sum of two matrices and WAP for it.
How do you list a file’s date and time?
Why is c known as a mother language?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What is const keyword in c?
How can I prevent another program from modifying part of a file that I am modifying?
What is a loop?
Explain what is the difference between a string and an array?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is the use of function in c?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
how should functions be apportioned among source files?
What is advantage of pointer in c?