-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
043ca77
commit bbe05d0
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |