#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 |
What are the key features of C?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is a floating point in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Do you know the difference between exit() and _exit() function in c?
Give a method to count the number of ones in a 32 bit number?
What's the difference between a linked list and an array?
What is #include called?
what is link list?
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.
write a program to find the number of even integers and odd integers in a given array in c language
13 Answers IAI Cameroun, NIIT, Olive Tech, QIS,
What is the use of sizeof?