372 B
372 B
| id | title | tags | created |
|---|---|---|---|
| 3hcv0amc | Printing values in 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.