#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
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 |
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is a const pointer in c?
Write a C program to check a number even or odd, without using any relational, arithmetic operator and any loops.
What is the value of h?
write a program of palindrome(madam=madam) using pointer?
What does struct node * mean?
What is the most efficient way to store flag values?
What is a Genralised LInked List?? Please give a detailed explation of it..
What is include directive in c?
How many types of operator or there in c?
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }