Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

number of digits in int c++

int length = 1;
int x = 234567545;
while ( x /= 10 )
   length++;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #digits #int
ADD COMMENT
Topic
Name
8+1 =