eolas/neuron/4407095f-9800-43a5-8792-d0d4d2a9d365/Printing_values_in_C.md
2024-10-21 00:00:03 +01:00

347 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.