How do I declare a pointer to an array?

Answer Posted / guest

could any one help me out how this pointer to an array
organized in the memory?

Eg.,
int (*p) [3] = (int (*)[3])a;

Here *p == p, how?

Thanks in advance!

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is typedef example?

727


What is unsigned int in c?

650


Which control loop is recommended if you have to execute set of statements for fixed number of times?

939


Explain how can a program be made to print the line number where an error occurs?

796


What are local static variables?

726






What is the difference between volatile and const volatile?

662


Why do we write return 0 in c?

654


What is difference between structure and union in c programming?

669


Is main an identifier in c?

708


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

719


What is wrong in this statement?

703


Explain the difference between call by value and call by reference in c language?

759


program for reversing a selected line word by word when multiple lines are given without using strrev

2053


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1596


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

807