From 7bf6ee95705717c0a3ededa8bd54d993c828e7a0 Mon Sep 17 00:00:00 2001 From: Javier Tia Date: Tue, 27 Oct 2015 05:41:01 -0600 Subject: [PATCH] ex11.c: assign nul byte, instead of 'A' --- ex11/ex11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex11/ex11.c b/ex11/ex11.c index ed70f6d..b0440ef 100644 --- a/ex11/ex11.c +++ b/ex11/ex11.c @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) name[0] = 'Z'; name[1] = 'e'; name[2] = 'd'; - name[3] = 'A'; + name[3] = '\0'; // then print them out initialized printf("numbers: %d %d %d %d\n",