Diff between string arr and char arr[n]

in a particular problem when i am using char arr[n] it is woking perfectly but when i m using string arr then it is giving sigsev there is no other changes in overall program.
how???

No one can answer without seeing the code

1 Like

Sigsegv probably means you are going out of index. share/link the code