The syntax for printf is:
int printf(const char *format, ...);
Simple usage examples:
1. Print character literal: printf("%c", 'a');
2. Print character variable: printf("%c", my_char);
3. Print string literal: printf("%s", "hello world");
4. Print string variable: printf("%s", my_string);
5. Print integer variable: printf("%d", my_integer);
6. Print floating-point variable: printf("%f", my_float);