From bbe05d057cd49c772213813f18f2367b33945ba9 Mon Sep 17 00:00:00 2001 From: pushkar009 <77531465+pushkar009@users.noreply.github.com> Date: Wed, 2 Mar 2022 21:50:52 +0530 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16ed501..48e4cc1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ -# String-of-length-without-using-function-in-c -Find length without using function strlen() in C. +# String of length without using function in C +* Find length without using function strlen() in C. +1. The program gets a string from user. +2. The counter is initially set to zero, when string is entered one by one the counter is incremented by 1. +3. When string is entered completely and hit enter the compiler adds '\0' at the end of string. +4. Counter keeps incrementing until '\0' is not entered. +5. Counter is printed at the end of program.