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
Can you assign a different address to an array tag?
Describe explain how arrays can be passed to a user defined function
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 oops means?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Is javascript based on c?
Why c is called object oriented language?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How to throw some light on the b tree?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Explain how do you list files in a directory?
What is the difference between union and anonymous union?
how we can make 3d venturing graphics on outer interface
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What is function and its example?