As c# doesnt have null character as in c I want to know how to find the length of string without using the length function???
swetz
0
Newbie Poster
Recommended Answers
Jump to PostWhy you want to find the length of string without Length function. One way is use String.ToCharArray() function, then iterate through the loop. Inside loop increment the value of counter variable.
As c# doesnt have null character as in c I want to know how to find the length of …
Jump to Postchar NullChar = char(0)
should return the null character value.
All 5 Replies
rohand
1
Posting Whiz in Training
Ionelul
7
Junior Poster in Training
rohand
1
Posting Whiz in Training
ddanbe
2,724
Professional Procrastinator
Featured Poster
Geekitygeek
480
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.