#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
I need a sort of an approximate strcmp routine?
If I have a char * variable pointing to the name of a function ..
Write a code to generate a series where the next element is the sum of last k terms.
Differentiate between a for loop and a while loop? What are it uses?
Can you subtract pointers from each other? Why would you?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What are directives in c?
What are c identifiers?
Why can’t constant values be used to define an array’s initial size?
What is difference between Structure and Unions?
Explain what is meant by 'bit masking'?
Explain that why C is procedural?
What are the 4 types of unions?
difference between native and cross compilers
Linked lists -- can you tell me how to check whether a linked list is circular?