#include<stdio.h>
#include<conio.h>
int main()
{
int a[4][4]={{5,7,5,9},
{4,6,3,1},
{2,9,0,6}};
int *p;
int (*q)[4];
p=(int*)a;
q=a;
printf("\n%u%u",p,q);
p++;
q++;
printf("\n%u%u",p,q);
getch();
return 0;
}

what is the meaning of this program?

Answers were Sorted based on User's Feedback



#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {..

Answer / ajinkya

void main{int a=1;while(a++<=1)while(a++>2);}

Is This Answer Correct ?    1 Yes 0 No

#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {..

Answer / sanjay bhosale

Assuming base address is 1000.
And integer requires 4byte of memory.

First printf will give 1000 and 1000
while second printf will give 1004 and 1016.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }

1 Answers  


what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits

2 Answers   Wipro,


write a program that will read the temperature in Celsius and convert that into Fahrenheit.

1 Answers  


can we have joblib in a proc ?

0 Answers  


how to find that no is int or float?

5 Answers  






what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }

1 Answers   Motorola,


What does. int *x[](); means ?

0 Answers   Wilco,


What is 02d in c?

0 Answers  


code for bubble sort?

1 Answers  


Reverse a string word by word??

9 Answers  


What are the functions to open and close file in c language?

0 Answers  


Write a program to interchange two variables without using the third variable?

17 Answers   Accenture, College School Exams Tests, Infotech,


Categories