i have seen people declaring this symbol many times please help
int const n = 1e6 + 5;
const int n = 1e6 + 5 is equivalent to a declaring a constant integer of value 1000005.
1 Like
Although the above explanation is good enough, however for more detailed explanation :
e stands for 10^{some power}
When you write aex, where a = any double number, x is an integer, it is interpreted as a * 10 ^ x. So here in your example 1e6 + 5 is interpreted as 1.0 \times 10^6 + 5. C++ don’t need explicit type cast from double to int however in java you have to type cast as int in case your are using java. I hope it helps.