// java data type and length int 4 bytes double 8 bytes float 4 bytes long 8 bytes
// short 2 bytes boolean 1 byte char 2 bytes byte 1 byte
/ / char, int, float, Double, Signed, unsigned, Long, Short and void
// c language data types in less than java is not in the c language boolean types of data int 1 for true and 0 for false
// c language no java data type string representing a string string, c represents the language string is represented by an array of char string
// c language not all byte types represented by a byte of type char
#include <stdio.h>
#include <stdlib.h>
// the sizeof (); language may be a function c to obtain some of the data types out int
main ()
? {% // D accounted sql statement similar placeholder
printf ( "char length of D% \ n-", the sizeof (char));. 1 //
printf ( "int length of D% \ n-", the sizeof (int));. 4 //
printf ( "a float a length of% d \ n-", the sizeof (a float)); //. 4
the printf (" double length of% d \ n-", the sizeof (double)); //. 8
the printf (" Long length of% d \ n ", sizeof (long)) ; // may have different situations in different sizes, but the long length must be better than a large int. 4
the printf (" short length of% d \ n ", sizeof ( short)) ;// 2
// signed, unsigned, data type modifier
// signed int; represents a signed int data
// unsigned int; unsigned int data
printf ( "signed int length of% d \ n", sizeof (Signed int)); //. 4
the printf ( "unsigned int length of% d \ n", sizeof ( unsigned int)); // 4
// modifier symbols only modifies integer data type int Long
@ floating-point data can not be modified Double a float
// the printf ( "signed float length of% d \ n", sizeof ( signed float));
system ( "pause"); // invoke the command windows under the program to suspend execution of the system facilitate the observation program execution results
}