void func1(int (*a)[10])

{

printf("Ok it works");

}

void func2(int a[][10])

{

printf("Will this work?");

}

main()

{

int a[10][10];

func1(a);

func2(a);

}

a. Ok it works

b. Will this work?

c. Ok it worksWill this work?

d. None of the above



void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][..

Answer / guest

c)

Is This Answer Correct ?    31 Yes 2 No

Post New Answer

More C Code Interview Questions

main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }

3 Answers  


main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } }

1 Answers  


char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }

1 Answers  


How do you create a really large matrix (i.e. 3500x3500) in C without having the program crash? I can only reach up to 2500. It must have something to do with lack of memory. Please help!

1 Answers  


int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p

2 Answers  






All the combinations of prime numbers whose sum gives 32

1 Answers   HHH,


main() { char *cptr,c; void *vptr,v; c=10; v=0; cptr=&c; vptr=&v; printf("%c%v",c,v); }

1 Answers  


#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }

1 Answers  


how to return a multiple value from a function?

5 Answers   Wipro,


Find your day from your DOB?

15 Answers   Accenture, Microsoft,


#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }

1 Answers  


Write a function to find the depth of a binary tree.

13 Answers   Adobe, Amazon, EFI, Imagination Technologies,


Categories