Advertisement
kamandos

Homework

Jul 6th, 2022
686
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include
  2.  
  3. int main ( void )
  4. {
  5.   printf( "char                 %lu\n" , sizeof( char ));
  6.   printf( "int8_t               %lu\n" , sizeof( int8_t ));
  7.   printf( "unsigned char        %lu\n" , sizeof( unsigned char ));
  8.   printf( "uint8_t              %lu\n" , sizeof( uint8_t ));
  9.   printf( "short                %lu\n" , sizeof( short ));
  10.   printf( "int16_t              %lu\n" , sizeof( int16_t ));
  11.   printf( "uint16t              %lu\n" , sizeof( uint16_t ));
  12.   printf( "int                  %lu\n" , sizeof( int ));
  13.   printf( "unsigned             %lu\n" , sizeof( unsigned ));
  14.   printf( "long                 %lu\n" , sizeof( long ));
  15.   printf( "unsigned long        %lu\n" , sizeof( unsigned long ));
  16.   printf( "int32_t              %lu\n" , sizeof( int32_t ));
  17.   printf( "uint32_t             %lu\n" , sizeof( uint32_t ));
  18.   printf( "long long            %lu\n" , sizeof( long long ));
  19.   printf( "int64_t              %lu\n" , sizeof( int64_t ));
  20.   printf( "unsigned long long   %lu\n" , sizeof( unsigned long long ));
  21.   printf( "uint64_t             %lu\n" , sizeof( uint64_t ));
  22.   printf( "float                %lu\n" , sizeof( float ));
  23.   printf( "double               %lu\n" , sizeof( double ));
  24.   printf( "long double          %lu\n" , sizeof( long double ));
  25.   printf( "_Bool                %lu\n" , sizeof( _Bool ));
  26.   printf( "\n" );
  27.  
  28. return 0;
  29. }
Advertisement
RAW Paste Data Copied
Advertisement