Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ length of int

unsigned int number_of_digits = 0;

do {
     ++number_of_digits; 
     n /= base;
} while (n);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #length #int
ADD COMMENT
Topic
Name
7+8 =