eolas/neuron/9c5035d3-e1c9-40cd-a4b3-9d550f2b7fb6/Printing_values_in_C.md
2025-01-17 18:06:56 +00:00

342 B

id tags created
3hcv0amc
C
Thursday, February 29, 2024 | 17:33

Printing values in C

To print a literal

printf("hello world")

To print a variable

int age = 25
print("%d", age)

The %d is an example of a format specifier. It is the decimal integer format specifier.