Can we write a program which is equivalent to string. length(); without using it. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
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