#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 would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }
what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
can we have joblib in a proc ?
how to find that no is int or float?
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
What does. int *x[](); means ?
What is 02d in c?
code for bubble sort?
Reverse a string word by word??
What are the functions to open and close file in c language?
Write a program to interchange two variables without using the third variable?
17 Answers Accenture, College School Exams Tests, Infotech,