In C programming, data types are declarations for variables. This determines the type and size of data associated with variables. For example, int myVar; Here, myVar is a variable of int (integer) type. The size of int is 4 bytes. Basic types Here's a table containing commonly used types in C programming for quick access . Type Size (bytes) Format Specifier int at least 2, usually 4 %d , %i char 1 %c float 4 %f double 8 %lf short int 2 usually %hd unsigned int at least 2, usually 4 %u long int at least 4, usually 8 %ld , %li long long int at least 8 %lld , %lli unsigned long int at least 4 %lu unsigned long long int at least 8 %llu sign...
Comments
Post a Comment