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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
in func(int list[]: it gives only the address of the value
which was stored in the list.
func (int *list , ....):it gives the value which is stored
in the list
Is This Answer Correct ? | 0 Yes | 3 No |
What is int main () in c?
how to print value of e(exp1)up to required no of digits after decimal?
How can I split up a string into whitespace-separated fields?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
number of times a digit is present in a number
without using control structures and control structures find the max and min of given 2 nos
write a own function for strstr
what is data structure
what is unsigened char and what is the difference from char
Is there any possibility to create customized header file with c programming language?
Explain what does the format %10.2 mean when included in a printf statement?