#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
What is the sizeof () operator?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is the purpose of ftell?
Can include files be nested? How many levels deep can include files be nested?
what do you mean by inline function in C?
What is the purpose of main( ) in c language?
Write a code of a general series where the next element is the sum of last k terms.
What are the back slash character constants or escape sequence charactersavailable in c?
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
What is file in c language?
Explain the difference between structs and unions in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Explain how does free() know explain how much memory to release?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What are the types of pointers in c?