#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 purpose of scanf() and printf() functions?
How can you dynamically allocate memory in C?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?
What is double pointer?
Difference between malloc() and calloc() function?
Are pointers really faster than arrays?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Is c pass by value or reference?
What is variable and explain rules to declare variable in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What is the advantage of an array over individual variables?
c pgm count no of lines , blanks, tabs in a para(File concept)