From c1b94cf95cf87e919718cc17df4d91744709d0de Mon Sep 17 00:00:00 2001 From: kunal jain Date: Wed, 23 Mar 2022 14:44:59 -0400 Subject: [PATCH] correct char array definition and initialization --- pointer-operations_strings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pointer-operations_strings.c b/pointer-operations_strings.c index 0bd5ebe..f7afe45 100644 --- a/pointer-operations_strings.c +++ b/pointer-operations_strings.c @@ -152,8 +152,8 @@ int main() { // Uncomment the function that you want to run // and check the output for. - // char arr1 = "Hello world!"; - // char arr2; + // char arr1[] = "Hello world!"; + // char arr2[] = ""; // strlen1(arr1); // strlen2(arr1); // strlen3(arr1);