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 |
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?
What is property type c?
Write a program which returns the first non repetitive character in the string?
What are pointers? Why are they used?
What is the size of array float a(10)?
Explain how do you view the path?
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
Print all numbers which has a certain digit in a certain position eg: number=45687 1 number=4 2 number=5 etc
What is nested structure in c?
What are type modifiers in c?
while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?
Give basis knowledge of web designing ...