Data Types/Declarations Flashcards
(46 cards)
character (1 byte)
char
integer
int
real number (single, double precision)
float, double
short (16 bit integer)
short
long (32 bit integer)
long
double long (64 bit integer)
long long
positive or negative
signed
non-negative modulo 2m
unsigned
pointer to int, float,. . .
int*, float*,…
enumeration constant
enum tag {name1=value1,. . . };
constant (read-only) value
type const name;
declare external variable
extern
internal to source file
static
local persistent between calls
static
no value
void
structure
struct tag {…};
create new name for data type
typedef type name;
size of an object (type is size_t)
sizeof object
size of a data type (type is size_t)
sizeof(type)
initialize variable
type name=value;
initialize array
type name []={value 1 ,. . . };
initialize char string
char name[]=”string”;
reversed
char
character (1 byte)