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...


Is there any difference between the two declarations,

1. int foo(int *arr[]) and

2. int foo(int *arr[2])



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

Answer / susie

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.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More C Code Interview Questions

What are segment and offset addresses?

2 Answers   Infosys,


code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

1 Answers   HCL,


What is your nationality?

1 Answers   GoDB Tech,


Is the following code legal? struct a { int x; struct a *b; }

2 Answers  


main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”

5 Answers   HCL,


main() { int i=400,j=300; printf("%d..%d"); }

3 Answers  


why nlogn is the lower limit of any sort algorithm?

0 Answers  


plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............

2 Answers   Wipro,


Write a routine that prints out a 2-D array in spiral order

3 Answers   Microsoft,


main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }

1 Answers  


main() { int i=5,j=6,z; printf("%d",i+++j); }

2 Answers  


how to check whether a linked list is circular.

11 Answers   Microsoft,


Categories