include
Library then add name
int main (void)
{
}beginning of program
get_string()
printf()
print string
printf(“hello,%s\n”, answer)
print variable
%c
char placeholder
%f
float, double placeholder
%i
int placeholder
%li
long placeholder
%s
string placeholder
\n
new line
return-type name (argument_list)
int add_two_ints (int a, int b); \function declaration
int main (void)
{
int x = 8;
int y = 9;printf(“%i”, add_two_ints(x,y));
}
int add_two_ints (int a, int b)
{
return a + b;
}int
~- 2 bill to ~+2 bill
unsigned int
- 2x positive number ~+4 bill
chars
float
double
void
bool
create variable [type] [name]
int number;
char letter;
int height, width;
initializing
int number = 17;
char letter = “15”;
Operators
- % remainder
x *= 5
x = x *5
x++
increment by 1