i was initialising an array as a[1000000000] but it was giving segmentation fault. buyt when i did cin n
a[n] it was working fine. why?
Intitalisation of array
hello @pranaynigam
the array size is too big thats why it is giving segfault.
always use given size to declare the array