#include<stdio.h>

int main()
{
int a[3][3][2]=
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18};
printf("%d\n",*(*(*a+1));

return 0;
}

What will be the output of the above question? And how?



#include<stdio.h> int main() { int a[3][3][2]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,..

Answer / nikhil kumar sahu

Error...
one Right parenthesis is missing for printf function

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More C Interview Questions

#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }

2 Answers  


write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 Answers  


How do I initialize a pointer to a function?

2 Answers  


What are the different types of data structures in c?

0 Answers  


What is a built-in function in C?

1 Answers  






Can you subtract pointers from each other? Why would you?

0 Answers  


What is context in c?

0 Answers  


how can i print "hello"

3 Answers  


What is an lvalue in c?

0 Answers  


write a program to generate address labels using structures?

0 Answers   SJC,


write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)

7 Answers   Consultancy, DBU, FD, JK Associates, Kobe, Satyam,


Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?

1 Answers   Microsoft,


Categories