diff options
Diffstat (limited to 'printf_with_pointer.c')
-rw-r--r-- | printf_with_pointer.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/printf_with_pointer.c b/printf_with_pointer.c new file mode 100644 index 0000000..561fe23 --- /dev/null +++ b/printf_with_pointer.c @@ -0,0 +1,11 @@ +#include <stdio.h> + + +int main(void) +{ + printf("Hello World!\n"); + const char* str = "Hello %s!\n"; + char* second_str = "Clay"; + printf(str, second_str); + return 0; +} |