Quote:
I have written star pyramid pattern code using pointer to pointer in C but can't resolve the error
On first look, I would start by resetting the column number on every line.
for(i=0;i<n;i++){
*(a+i)=(char*)calloc((2*n-1),sizeof(char));
j=0;
while(j<(n-1-i)){