From f8d983f9e1098bb637665f60c452c8ac7fa24be1 Mon Sep 17 00:00:00 2001 From: debendu6 <72210435+debendu6@users.noreply.github.com> Date: Thu, 1 Oct 2020 22:28:33 +0530 Subject: [PATCH] update comments --- length of a string | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/length of a string b/length of a string index 810e5cd..4b9b226 100644 --- a/length of a string +++ b/length of a string @@ -1,9 +1,13 @@ #include int main() { + //string s char s[1000]; + //integer i int i; + //Printing Enter a string printf("Enter a string: "); + //taking string input scanf("%s", s) for(i = 0; s[i] != '\0'; ++i) printf("Length of string: %d", i);