#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
How can you tell whether two strings are the same?
What is #define in c?
Explain what does it mean when a pointer is used in an if statement?
What is the use of typedef in structure in c?
How many data structures are there in c?
How does free() know explain how much memory to release?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Explain the advantages of using macro in c language?
If I have a char * variable pointing to the name of a function ..
Explain what is wrong in this statement?
what is ur strangth & weekness
Write a program to print fibonacci series without using recursion?
What is character constants?
What is a pointer in c?
How to delete a node from linked list w/o using collectons?