data types
bool
, a Boolean expression of eithertrue
orfalse
char
, a single character likea
or2
double
, a floating-point value with more digits than afloat
float
, a floating-point value, or real number with a decimal valueint
, integers up to a certain size, or number of bitslong
, integers with more bits, so they can count higher than anint
string
, a string of characters
CS50 Library
get_char
get_double
get_float
get_int
get_long
get_string
printf format codes
%c
for chars%f
for floats or doubles%i
for ints%li
for long integers%s
for strings
mathematical operators
+
for addition-
for subtraction*
for multiplication/
for division%
for remainder
Leave a Reply