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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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