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 pointer to pointer in c with example?

745


How to implement a packet in C

2609


What does struct node * mean?

796


#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); }

831


Write a C program in Fibonacci series.

838


When should the volatile modifier be used?

878


What is difference between array and structure in c?

786


What is the size of enum in c?

836


is it possible to create your own header files?

822


Differentiate between full, complete & perfect binary trees.

852


Is array a primitive data type in c?

788


What is main () in c?

780


When would you use a pointer to a function?

797


What are all different types of pointers in c?

765


Is c pass by value or reference?

801