#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 is the difference between malloc() and calloc()?
Can you please explain the difference between strcpy() and memcpy() function?
write a program to display the frequency of each element in a given array in c language
What is string constants?
Describe newline escape sequence with a sample program?
code for replace tabs with equivalent number of blanks
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
An interactive c program to read basic salary of 15 persons. each person gets 25% of basic as HRA, 15%of basic as conveyance allowances, 10%of basic as entertainment allowances.The total salary is calculated by adding basic+HRA+CA+EA.Calculate how many out of 15 get salary above 10,000.Rs also print the salary of each employee
Explain what is the difference between #include and #include 'file' ?
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }
What is methods in c?
Apart from dennis ritchie who the other person who contributed in design of c language.