#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
What are the modifiers available in c programming language?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
For what purpose null pointer used?
What is the difference between array and linked list in c?
Explain what are multibyte characters?
How do I get an accurate error status return from system on ms-dos?
What is the total generic pointer type?
What is the process to generate random numbers in c programming language?
Why is event driven programming or procedural programming, better within specific scenario?
What is the advantage of c?
why we wont use '&' sing in aceesing the string using scanf
What is a 'null pointer assignment' error?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
List some of the static data structures in C?