how to find out the amount of ints in c 2b 2b

Solutions on MaxInterview for how to find out the amount of ints in c 2b 2b by the best coders in the world

showing results for - "how to find out the amount of ints in c 2b 2b"
Lilly
15 Oct 2019
1int x = 1000;
2int numberOfDigits = x ? static_cast<int>(log10(abs(x))) + 1 : 1;
3
similar questions