#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



#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {..

Answer / ajinkya

void main{int a=1;while(a++<=1)while(a++>2);}

Is This Answer Correct ?    1 Yes 0 No

#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {..

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

Post New Answer

More C Interview Questions

What is the purpose of scanf() and printf() functions?

0 Answers  


How can you dynamically allocate memory in C?

2 Answers  


#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?

4 Answers   Ramco,


What is double pointer?

0 Answers  


Difference between malloc() and calloc() function?

0 Answers  


Are pointers really faster than arrays?

0 Answers  


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

0 Answers  


Is c pass by value or reference?

0 Answers  


What is variable and explain rules to declare variable in c?

0 Answers  


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?

0 Answers   KPIT,


What is the advantage of an array over individual variables?

0 Answers  


c pgm count no of lines , blanks, tabs in a para(File concept)

2 Answers  


Categories