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

main() { printf("\nab"); printf("\bsi"); printf("\rha"); }

3 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,


main() { int a[10]; printf("%d",*a+1-*a+3); }

1 Answers  


1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.

8 Answers   IBPS, Infosys, TCS,


main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  






What is the main difference between STRUCTURE and UNION?

13 Answers   HCL,


#include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }

2 Answers  


What is data _null_? ,Explain with code when u need to use it in data step programming ?

0 Answers   Abbott,


char *someFun1() { char temp[ ] = “string"; return temp; } char *someFun2() { char temp[ ] = {‘s’, ‘t’,’r’,’i’,’n’,’g’}; return temp; } int main() { puts(someFun1()); puts(someFun2()); }

2 Answers  


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

0 Answers   Home,


main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 Answers  


program to find magic aquare using array

4 Answers   HCL,


Categories