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

Is this code legal? int *ptr; ptr = (int *) 0x400;

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  


#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }

0 Answers   Student,


int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }

2 Answers   CSC,


Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

1 Answers  






#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }

1 Answers  


How to access command-line arguments?

4 Answers  


How to palindrom string in c language?

6 Answers   Google,


Given n nodes. Find the number of different structural binary trees that can be formed using the nodes.

16 Answers   Aricent, Cisco, Directi, Qualcomm,


main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

1 Answers  


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

3 Answers   Microsoft,


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


Categories