I still can't find why am I getting a seg fault. I have tried to debug it. Can anyone help
It's likely that your array was in static memory and you accessed some memory that your app is not allowed to access. But that doesn't matter, because it's UB. We don't need to investigate results of UB
Pavel
Yasas
Takshveer
@𝑺𝒐𝒃𝒌𝒂
Rberto
Whistleblower
@Infolinux 🖖🏻
Golden Age Of
Hermann
olli
Vlad