suppose in the question its is given 1<=n<10^6. Most appropriately we have to take a string of that size. we can globally declare like this: char A[1000001] Here last digit as 1 signify for the null character.
But i have seen people declaring array like this:char A[1000010]
Why so?what is the reason behind it?trust me I got AC after Declaring the array declaration of the 2nd type