#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 is the difference between malloc() and calloc()?

0 Answers  


Can you please explain the difference between strcpy() and memcpy() function?

0 Answers  


write a program to display the frequency of each element in a given array in c language

1 Answers  


What is string constants?

0 Answers  


Describe newline escape sequence with a sample program?

0 Answers  






code for replace tabs with equivalent number of blanks

0 Answers   Bosch,


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

0 Answers  


An interactive c program to read basic salary of 15 persons. each person gets 25% of basic as HRA, 15%of basic as conveyance allowances, 10%of basic as entertainment allowances.The total salary is calculated by adding basic+HRA+CA+EA.Calculate how many out of 15 get salary above 10,000.Rs also print the salary of each employee

2 Answers  


Explain what is the difference between #include and #include 'file' ?

0 Answers  


What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

8 Answers   ADITI, Adobe,


What is methods in c?

0 Answers  


Apart from dennis ritchie who the other person who contributed in design of c language.

0 Answers  


Categories