• + 0 comments

    i did the same thing, only difference was declaring the array as static and it gave segmentation fault while by using dynamic allocation it got passed. What's the reason?