When do we use size_t data type and npos in c++ strings? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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

20th Jan 2021, 2:05 PM
TeaserCode
1 Answer
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