Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 156

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 65

Answer:

Is there any difference between the two declarations,
1. int foo(int *arr[]) and
2. int foo(int *arr[2])


Answer:
No


Explanation:
Functions can only pass pointers and not arrays. The numbers that are allowed inside the [] is just for more readability. So there is no difference between the two declarations.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 156 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: