sorbhs's blog

By sorbhs, 11 years ago, In English

can anyone help me how to remove error like runtime error(SIGSEGV).. ?

  • Vote: I like it
  • -6
  • Vote: I do not like it

»
11 years ago, # |
  Vote: I like it +5 Vote: I do not like it

Be careful for any [access violation] like in arrays and pointers

e.g.int a[10];cout << a[11];this is actually undefined behavior

e.g.int*x;cout << x[1] << *x << x[0];this will cause SIGSEGV