When do we use size_t data type and npos in c++ strings? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

When do we use size_t data type and npos in c++ strings?

20th Jan 2021, 2:05 PM
TeaserCode
1 Réponse
0
size_t is a type able to represent the size of any object in bytes. It is used of indexing and counting in array.
20th Jan 2021, 2:35 PM
Zohaib 👑
Zohaib 👑 - avatar