The maximum number of digits calculated int type and number of

 

Code:

int A = 0 , B = 0 ;
 the while (++ A> 0 ); 
the printf ( " int is the maximum number of data types:% D \ n- " , A- . 1 ); 
B ++ ; 
A = A / 10 ;
 the while (A) 
{ 
   B ++ ;
  A = A / 10;
The printf} ( " maximum number of bit int data type is: D% " , B);

simplify:

int A = 0 , B = 0 ;
 the while (++ A> 0 ); 
the printf ( " int is the maximum number of data types:% D \ n- " , A- . 1 ); 
B ++ ;
 the while (A = A / 10 ) 
{ 
    B ++ ; 
} 
the printf ( " maximum number of bit int data type is: D% " , B);

 

Guess you like

Origin www.cnblogs.com/zhangliukou/p/11200446.html