#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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the sizeof () operator?

794


Explain can the sizeof operator be used to tell the size of an array passed to a function?

799


What is the purpose of ftell?

828


Can include files be nested? How many levels deep can include files be nested?

872


what do you mean by inline function in C?

836


What is the purpose of main( ) in c language?

887


Write a code of a general series where the next element is the sum of last k terms.

809


What are the back slash character constants or escape sequence charactersavailable in c?

930


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

919


What is file in c language?

781


Explain the difference between structs and unions in c?

771


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1237


Explain how does free() know explain how much memory to release?

782


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2029


What are the types of pointers in c?

742