#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


Please Help Members By Posting Answers For Below Questions

How can you tell whether two strings are the same?

1050


What is #define in c?

840


Explain what does it mean when a pointer is used in an if statement?

852


What is the use of typedef in structure in c?

736


How many data structures are there in c?

854


How does free() know explain how much memory to release?

838


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)

1901


Explain the advantages of using macro in c language?

783


If I have a char * variable pointing to the name of a function ..

935


Explain what is wrong in this statement?

869


what is ur strangth & weekness

2052


Write a program to print fibonacci series without using recursion?

859


What is character constants?

922


What is a pointer in c?

1032


How to delete a node from linked list w/o using collectons?

2414