#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 |
Why preprocessor should come before source code?
main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā%dā,x); }
What is meant by keywords in c?
Is void a keyword in c?
int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(ā%dā,*(*(x+1)+3));
int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?
how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *
what is c++ programming?
explain what are pointers?
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
8 Answers Carphone Warehouse, IBM, SAS,
Ow can I insert or delete a line (or record) in the middle of a file?
main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } Find the Outputs?