Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



what is the difference between : func (int list[], ...) or func (int *list , ....) - what is the ..

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

what is the difference between : func (int list[], ...) or func (int *list , ....) - what is the ..

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

Post New Answer

More C Interview Questions

Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.

2 Answers  


Are the variables argc and argv are local to main?

0 Answers   TISL,


for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float

1 Answers  


Explain the priority queues?

0 Answers  


How to swap two values using a single variable ? condition: Not to use Array and Pointer ?

6 Answers  


The difference between printf and fprintf is ?

0 Answers   Baan Infotech,


What is declaration and definition in c?

0 Answers  


What are the ways to a null pointer can use in c programming language?

0 Answers  


Define function ?Explain about arguments?

2 Answers   Geometric Software, Infosys,


Can include files be nested?

0 Answers  


how to create c progarm without void main()?

1 Answers   NIIT,


Write a small C program to determine whether a machine's type is little-endian or big-endian.

5 Answers   nvidia,


Categories