Error is generated

please check the code
following error is generated: /bin/run.sh: line 4: 19 Segmentation fault (core dumped) ./exe

else if(dir==2){
for(int k=br;k<=tr;k–){
cout<<A[k][rc]<<", ";
}
rc–;
}
in this segment of code
for(int k=br;k>=tr;k–){
this is correct