Hi ,

I have not worked with three dimensional array,
how to declare int a[3][3][3] with the help of pointers and explain Why.

use one star for each dimension, like this: int ***a; Now, in C programs, call malloc() to allocate each dimension. This will require two loops for the second and third dimensions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.