what is the difference between : func (int list[], ...) or
func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer
Answer Posted / vimal
Nothing,because ultimately pointer to the first element of
array is send to the function,therefore using both method
changes made in called function will affect the calling
function. In one first you indirectly reference the pointer
and in other you directly reference the pointer.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of external class?
How can I implement a delay, or time a users response, with sub-second resolution?
Why do some versions of toupper act strangely if given an upper-case letter?
can we have joblib in a proc ?
Explain what is a pragma?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Explain the use of 'auto' keyword
Explain how can I right-justify a string?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Explain the use of fflush() function?
What is the benefit of using const for declaring constants?
What is enumerated data type in c?
Find MAXIMUM of three distinct integers using a single C statement