From 102341d7ae8793c29d44fa416d3b5b797d1eca3e Mon Sep 17 00:00:00 2001 From: Clay Smith Date: Tue, 1 Aug 2023 01:09:09 -0500 Subject: First commit --- printf_with_pointer.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 printf_with_pointer.c (limited to 'printf_with_pointer.c') 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 + + +int main(void) +{ + printf("Hello World!\n"); + const char* str = "Hello %s!\n"; + char* second_str = "Clay"; + printf(str, second_str); + return 0; +} -- cgit v1.2.1