Can we write a program which is equivalent to string. length(); without using it. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Can we write a program which is equivalent to string. length(); without using it.

dont use any string function.

10th Oct 2016, 4:58 PM
Akshat Pandey
Akshat Pandey - avatar
1 Antwort
0
There are a few unconventional ways but not exactly short. For one, you can extract characters in a loop and count the number of characters.
12th Oct 2016, 2:55 PM
Kumar Rohit
Kumar Rohit - avatar