I have written following sample code to demonstrate my problem
#include #include using namespace std; void f (char*** a) {
a[0], a[1] are char, and they have a value in them, dereferencing that value will obviously cause a segmentation fault. What you may want to do is:
(*a)[...]
dereference 'a' which is a pointer, this will give u an array.