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 |
Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.
Are the variables argc and argv are local to main?
for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float
Explain the priority queues?
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?
The difference between printf and fprintf is ?
What is declaration and definition in c?
What are the ways to a null pointer can use in c programming language?
Define function ?Explain about arguments?
2 Answers Geometric Software, Infosys,
Can include files be nested?
how to create c progarm without void main()?
Write a small C program to determine whether a machine's type is little-endian or big-endian.